1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-08 14:46:34 +02: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

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()