Open julkue opened 5 years ago
@julmot That is the expected behavior. Click outside the modal should close the modal. If that'snot the case in Chrome, its a bug and should be fixed.
Would it possible for you to show us a demo of the form on chrome?
It's not click I'm referring to, I'm referring to blur!
Just open the demo page, select text in chrome and stop selecting it while having the mouse cursor over the overlay (not the actual modal). Then you'll notice, that this will close the modal even though it's not a click. On top, it's Chrome specific.
I think this may be a duplicate of https://github.com/ghosh/Micromodal/issues/287
BTW, this issue is not Chrome specific. Yes, if are focused in some field - probably chrome specific. I don't see this in Firefox and Safari. But, if you start your click inside a modal (not form element) and finish it outside - the modal closes and not only in Chrome. I tested in firefox and Safari.
Home this issue will be fixed in near future..
I'm showing a form within my modal. When selecting the text in e.g. a text field, and stopping the selection over the modal overlay, the modal closes in Chrome. In Firefox, however, it doesn't close.
It doesn't close the modal if the blur event is happening inside the modal, only if it's happening on the overlay (see example above).