You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the following contents in a bootbox (5.1.0) dialog:
The footer (.modal-footer) contains a dropdown, a bootstrap button-group. Whenever you try to interact with this dropdown, the dialog closes (the dropdown options are never shown).
The cause is this:
dialog.on('click', '.modal-footer button:not(.disabled)', function (e) {
var callbackKey = $(this).data('bb-handler');
processCallback(e, dialog, callbacks[callbackKey]);
});
All button elements cause a callback to be called. A small code change fixes the issue:
dialog.on('click', '.modal-footer button:not(.disabled)', function (e) {
var callbackKey = $(this).data('bb-handler');
if (callbackKey !== undefined) {
// Only process callbacks for buttons we recognize:
processCallback(e, dialog, callbacks[callbackKey]);
}
});
The text was updated successfully, but these errors were encountered:
I have the following contents in a bootbox (5.1.0) dialog:
The footer (
.modal-footer
) contains a dropdown, a bootstrapbutton-group
. Whenever you try to interact with this dropdown, the dialog closes (the dropdown options are never shown).The cause is this:
All button elements cause a callback to be called. A small code change fixes the issue:
The text was updated successfully, but these errors were encountered: