Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avoid multiple change event trigger :
- add unit test to count how many event are thrown when widget contains multiple tags inside label - add a parameter to toggle, if click event is provided onto an input then don't trigger another change event already thrown by the browser - simplify the case where toggle interface is called click provide from input itself OR it's a button without label. If label is present, then browser propagate clic event from childrens thru label and then cause multiple calls to toggle - the test assume that `.btn` class is always set onto the label if there's one, otherwise need to update this plugin and look for label arround the input Test with keyboard, mouse and js clic call
- Loading branch information
1 parent
3be5859
commit c3db204
Showing
2 changed files
with
34 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters