We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In some case when jquery-ui.js is loaded after bootstrap.js, this code
$('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) { var $btn = $(e.target) if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn') $btn.button('toggle') })
has no effect.
$.fn.button in console shows a bit of jquery-ui, not bootstrap.js method.
I've solved this problem:
$.fn.button_ = $.fn.button;
and
$('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) { var $btn = $(e.target) if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn') $btn.button_('toggle') })
The text was updated successfully, but these errors were encountered:
jquery-ui and bootstrap don't play nicely together.
Sorry, something went wrong.
ok
No branches or pull requests
In some case when jquery-ui.js is loaded after bootstrap.js, this code
has no effect.
$.fn.button in console shows a bit of jquery-ui, not bootstrap.js method.
I've solved this problem:
and
The text was updated successfully, but these errors were encountered: