Answer the question
In order to leave comments, you need to log in
Why does the modal close on any click?
https://jsfiddle.net/7jze1skt/
We need it to close only when the overlay is clicked. I put a click on it, but the modal closes even if you click on it, and it's impossible to enter anything. Help me fix it please.
And one more thing - why does the form open only with a double click, and not with the first one, when it already appeared and closed?
Answer the question
In order to leave comments, you need to log in
fixed
Why does the modal close on any click?
event.target
- the element on which the click actually occurredWhy does the form only open on double click?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question