2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-27 14:46:01 +03:00

Merge pull request #18900 from vlastikcz/v4-dev-buttonChange

Button toggling - trigger change event on input. Fixes #16673, fixes #17599.
This commit is contained in:
Mark Otto
2016-11-26 01:18:21 -08:00
committed by GitHub
2 changed files with 21 additions and 1 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ const Button = (($) => {
if (triggerChangeEvent) {
input.checked = !$(this._element).hasClass(ClassName.ACTIVE)
$(this._element).trigger('change')
$(input).trigger('change')
}
input.focus()