Skip to content

Commit

Permalink
ci(addon/components/paper-form): removes console logging, fixes child…
Browse files Browse the repository at this point in the history
…ren documentation.
  • Loading branch information
matthewhartstonge committed Nov 15, 2024
1 parent 49f37af commit d5cce06
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions addon/components/paper-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default class PaperForm extends Component {
autocompleteComponent;

/**
* Set of form components
* Array of form components
* @type {A}
*/
@tracked children = A([]);
Expand Down Expand Up @@ -112,13 +112,11 @@ export default class PaperForm extends Component {

@action localOnSubmit() {
if (this.isInvalid) {
console.debug('form is invalid');
this.children.setEach('isTouched', true);
if (this.args.onInvalid) {
this.args.onInvalid();
}
} else {
console.debug('form is submitted');
if (this.args.onSubmit) {
this.args.onSubmit();
}
Expand Down

0 comments on commit d5cce06

Please sign in to comment.