Skip to content
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

backgroundDismiss only works to left and right of the dialog with Firefox #465

Closed
Hizoka76 opened this issue Mar 6, 2019 · 2 comments
Closed

Comments

@Hizoka76
Copy link

Hizoka76 commented Mar 6, 2019

jquery-confirm version:
v3.3.x

I'm submitting a ... (check one with "x")
[ ] bug report
[ ] feature request
[X] support request

Current behavior:
Hi :)
I use backgroundDismiss: true but that works only if I click to left and right of the dialog, not above or below of it... with Firefox 66.0b13, works with Falkon.
I use alert in a function.
Any idea why ?
Thank you !

Expected behavior:

Steps to reproduce:

Related code:

function FenetreInfo(Titre, Message, Couleur = 'red', Largeur = '500px', Icone = 'fas fa-exclamation-triangle')
{
    $.alert(
    {
        title: Titre, 
        content: Message,
        icon: Icone,
        type: Couleur,
        typeAnimated: true, 
        backgroundDismiss: true, 
        escapeKey: true,
        boxWidth: Largeur,
        useBootstrap: false,
        buttons:
        {
            Exit:
            {
                text: "OK",
                btnClass: 'btn-' + Couleur,
                keys: ['enter']
            }
        }
    });
}

Other information:

@chris2039
Copy link

I was having this same problem on firefox. I added the following style after importing the default jquery-confirm css file and it seems to take care of the issue for me.

.jconfirm .jconfirm-bg { z-index: -999; }

@Hizoka76
Copy link
Author

Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants