Skip to content

Commit e5fb1da

Browse files
committed
push disable setting to the event loop - this allows for form submit to begin
1 parent 13a59a0 commit e5fb1da

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

js/bootstrap-buttons.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@
3131

3232
$el.html( data[state] || $.fn.button.defaults[state] )
3333

34-
state == 'loadingText' ?
35-
$el.addClass(d).attr(d, d) :
36-
$el.removeClass(d).removeAttr(d)
34+
setTimeout(function () {
35+
state == 'loadingText' ?
36+
$el.addClass(d).attr(d, d) :
37+
$el.removeClass(d).removeAttr(d)
38+
}, 0)
3739
}
3840

3941
function toggle(el) {

0 commit comments

Comments
 (0)