1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-22 13:13:03 +02:00
This commit is contained in:
Mark Otto
2016-02-16 20:09:57 -08:00
parent c5c0728559
commit 3b84ffcc54
13 changed files with 24 additions and 14 deletions

View File

@@ -462,6 +462,8 @@ var Button = (function ($) {
input.checked = !$(this._element).hasClass(ClassName.ACTIVE);
$(this._element).trigger('change');
}
$(input).trigger('focus');
}
} else {
this._element.setAttribute('aria-pressed', !$(this._element).hasClass(ClassName.ACTIVE));

File diff suppressed because one or more lines are too long

View File

@@ -108,6 +108,8 @@
input.checked = !$(this._element).hasClass(ClassName.ACTIVE);
$(this._element).trigger('change');
}
$(input).trigger('focus');
}
} else {
this._element.setAttribute('aria-pressed', !$(this._element).hasClass(ClassName.ACTIVE));