1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-21 12:51:52 +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));