flowbite icon indicating copy to clipboard operation
flowbite copied to clipboard

Modal is closed when click didn't initiate outside of content

Open r4cker opened this issue 11 months ago • 2 comments

When you click in the modal and release the click outside of it, the modal is still closed. That happend quite often when you have small modal and you go fast to select text.

They are multiple framework that suffer the same issue:

https://stackoverflow.com/questions/55732804/modal-is-closed-when-cursor-is-released-outside-the-modal-after-chrome-update-a https://stackoverflow.com/questions/56633589/prevent-modal-from-closing-when-click-didnt-initiate-outside-of-content

sandbox : https://plnkr.co/edit/mxDLAdnrQ4p0KKyw?p=info

Expected behavior When you click inside the modal and release the click outiside, the modal shouldn't close.

MyLl4

r4cker avatar Dec 20 '24 08:12 r4cker

Any news on this issue or am I the only one to have it (chrome) ?

r4cker avatar Mar 10 '25 10:03 r4cker

@r4cker You aren't the only one. I'm also looking for a solution.

ttk avatar Jun 13 '25 21:06 ttk