forked from leovo2708/ngx-treeview
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support IE Indeterminate checkboxes for "All" option
IE handles indeterminate checkboxes "differently", it doesn't fire an onChange event when a checkbox goes from indeterminate to a determinate state. This issue is well documented on the jquery github issue: jquery/jquery#1698 The generally accepted solution is to use the onClick event instead of the onChange event. You can see this solution implemented in the google's angular material design library in their github link here: angular/components#3145 I applied a similar approach to normalize the events we listen to for the indeterminate all checkbox and commented why those things are done in the code so this issue won't regress.
- Loading branch information
Daniel Latimer
committed
Apr 24, 2018
1 parent
f20b3e4
commit 21dae8c
Showing
2 changed files
with
26 additions
and
9 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