jquery-confirm icon indicating copy to clipboard operation
jquery-confirm copied to clipboard

Add navigation block on the main page

Open marlonnardi opened this issue 4 years ago • 1 comments

jquery-confirm version: v3.3.4

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

Expected behavior: It would be very good if, when opening Confirm, the main page was blocked for navigation, only access to the dialog.

Steps to reproduce: open confirm and press tab a few times.

marlonnardi avatar Apr 20 '20 13:04 marlonnardi

You can try this if you don't use the tabIndex attribut:

$("*").attr("tabindex", "-1");

Jquery-confirm command...

$("*").removeAttr("tabindex");

or change the jquery-confirm.js: Add:

            if(this.NoTabAction)
                $("*").attr("tabindex", "-1");

After:

    w.Jconfirm.prototype = {
        _init: function(){
            var that = this;

And add:

            if(this.NoTabAction)
                $("*").removeAttr("tabindex");

Before:

            return true;
        },
        open: function(){

You can now use the NoTabAction option:

$.alert(
{
    NoTabAction: true
    ...
})

Hizoka76 avatar Jun 08 '20 12:06 Hizoka76