]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Button toggling - trigger change event on input 18900/head
authorKotas Vlastimil <Vlastimil.Kotas@ysoft.com>
Thu, 14 Jan 2016 16:41:36 +0000 (17:41 +0100)
committerKotas Vlastimil <Vlastimil.Kotas@ysoft.com>
Thu, 14 Jan 2016 19:26:32 +0000 (20:26 +0100)
commit866e99b00cb12dcfa0d9b88edf4f4d0ef06ca3f3
treee969c95e8d2595ee40a566d345f6e855442ede16
parent5e893434c794b328f3c49638bfbb527f356aa6de
Button toggling - trigger change event on input

Bootstrap’s .button styles can be applied to other elements, such as labels, to provide checkbox or radio style button toggling.

When the checkbox or radio state is changed, there should be triggered the change event. Currently, the change event is triggered on the Button, which is not correct. Only input fields do support the change event.
js/src/button.js
js/tests/unit/button.js