Skip to content

Commit

Permalink
Modify form trigger args
Browse files Browse the repository at this point in the history
  • Loading branch information
sonechiman committed Mar 29, 2016
1 parent 14d0d57 commit 2ae3de6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/riot-form.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/riot-form.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/riot-form.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/riot-form.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default class Form {
return (inputName, value) => {
this.model[form.name] = form.model
this.errors[form.name] = form.errors
this.trigger('change', form.name, form.model)
this.trigger('change', form.name + '.' + inputName, form.model)
}
}

Expand Down

0 comments on commit 2ae3de6

Please sign in to comment.