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

When there's a Report opened it's still possible to navigate the page using the Tab key #41

Closed
RavazziniAndrea opened this issue Sep 2, 2021 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@RavazziniAndrea
Copy link

Describe the bug
As said in the title, whenever there's a Report opened in fullscreen, the page is still navigable using the Tab key and with the Enter key links are still clickable.

Expected behavior
In my opinion, the report has to be closed by pressing che Enter key and the Tab has to be blocked in the mean time.

Desktop:

  • OS: Linux Mint 20.2
  • Browser: Firefox 91.0.1esr , Chromium 92.0.4515.159
@RavazziniAndrea RavazziniAndrea added the bug Something isn't working label Sep 2, 2021
@furcan
Copy link
Collaborator

furcan commented Sep 2, 2021

Hi @RavazziniAndrea ,

Notiflix is a non-blocking notification library. So, this library can not predict which events and/or elements should be prevented and/or blocked.

You have to create your own solution/approach to prevent and/or block the events/elements.

An example is below.

var blockThem = function () {
    // your codes...
};

var unblockThem = function () {
    // your codes...
};

// ---
// ---
// ---

blockThem();
Notiflix.Report.info(
    'Title',
    'Description',
    'Button Text',
    // Button onClick callback func
    function cb() {
        unblockThem();
    },
);

Thanks,
Furkan.

@furcan furcan closed this as completed Sep 2, 2021
@furcan furcan added question Further information is requested and removed bug Something isn't working labels Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants