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

Problem with showing a modal window while another window is focused #62

Open
mossaiby opened this issue Sep 2, 2021 · 4 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@mossaiby
Copy link

mossaiby commented Sep 2, 2021

Hi,

If a modal window is shown though clicking a button in another window, the modal window is not focused and the other window is shown above the backdrop, even though I call focus() on the modal window. When the modal window gets focus via clicking, the other window goes behind the backdrop and everything becomes OK. A workaround is doing that in a setTimeout(() => modalWindow.show().focus(), 0), but of course this is not desirable.

Edit: This is not specific to modal windows.

Also, there is no way to blur a window... maybe adding a blur() method would be nice.

TIA

@mossaiby mossaiby changed the title Problem with showing a modal window while another window is active Problem with showing a modal window while another window is focused Sep 2, 2021
@AlexandreBourrieau
Copy link

Same problem here

@ts-thomas ts-thomas added the bug Something isn't working label Aug 7, 2022
@ts-thomas ts-thomas self-assigned this Aug 7, 2022
@ts-thomas
Copy link
Contributor

This should be fixed now. Please try again.

@mkorban
Copy link

mkorban commented Aug 26, 2022

Call with modal:true don't display modal window (in result div: display:none)
image

@jokertrm
Copy link

For me there is a conflict if you are also using bootstrap 4/5. Setting modal:true in the config section has the following effect:

  • winbox .modal class is overridden by the bootstrap .modal class.

If I rename all instances of "modal" in the winbox .js and .css files to something else, ie 'modals' then I see the window pop correctly as a shown on the examples site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants