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

Safari problems #158

Open
flaushi opened this issue Mar 20, 2021 · 0 comments
Open

Safari problems #158

flaushi opened this issue Mar 20, 2021 · 0 comments

Comments

@flaushi
Copy link

flaushi commented Mar 20, 2021

Hi.
I tried the demo page https://jquery.malsup.com/block/ but it neither works in a current Safari nor Chrome.

My personal installation however does work with Chrome, but still Safari makes problems.

This code does show a spinner whenever a link or submit button is pressed. When the target page is loaded, the ui disappears. It works fine in Chrome. But Safari does not show it.

$(document).on('click',
    'a[href*="/"][target!="_blank"]:not(.suppress-block-ui), button[type=submit]:not(.suppress-block-ui)',
    function (e) {
       // e.preventDefault() // **
        if(! e.ctrlKey && !e.metaKey )
            myBlockUi();
    });

If I try to prevent the navigation (**), the ui does appear on Safari as well.

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

1 participant