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

InitFlowbite destroys opened modals #1042

Open
eugeniugrigoras opened this issue Feb 25, 2025 · 0 comments
Open

InitFlowbite destroys opened modals #1042

eugeniugrigoras opened this issue Feb 25, 2025 · 0 comments

Comments

@eugeniugrigoras
Copy link

If a modal is already opened and while it is open initFlowbite() is called then the modal instance is resetted/removed and the backdrop disappears.
You can try it by just adding

setTimeout(() => {
    initFlowbite();
}, 5000);

and open a modal before 5 seconds.
You will see that the backdrop disappears.

This happens also when using flowbite with HTMX.
Can you look into this PR?
#824

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