-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
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
Both the modal and the confirm-window are displayed on IE11. #80
Comments
Hi, apologies for the late reply. I can confirm the issue. It Edit: It happens when using |
@vjt with latest versions Instead of data-confirm-modal/vendor/assets/javascripts/data-confirm-modal.js Lines 315 to 355 in 139459f
we could write: /**
* Override `Rails.confirm` dialog.
*
* If the modal is visible, it means that the handler is being called by the
* modal commit button click handler, as such the user has successfully
* clicked on the confirm button.
*
* If the modal is not visible, then it is spawned and the default Rails
* confirmation dialog is canceled.
*
*/
Rails.confirm = function (message, el) {
const modal = $(el).getConfirmModal()
if (modal.is(':visible')) {
return true
} else {
modal.spawn()
return false
}
} It also works on IE11, FWIW |
Two windows are displayed when you click the link that has a data-confirm attribute.
Please see below.
Versions:
The text was updated successfully, but these errors were encountered: