T
T
tyrion12019-08-23 16:18:24
JavaScript
tyrion1, 2019-08-23 16:18:24

After the end of the .select() event, how not to close the popup when clicked outside?

There is a modal window implemented at
https://getuikit.com/docs/modal
If you start selecting text on it and release the mouse outside the modal window while the text is selected, then a click will occur outside the popup and the window will close.
How is it possible, when the .select() event is fired, to cancel the closing of the window when clicked outside?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
ettychel, 2019-08-26
@ettychel

Without reading the documentation
Set an event .mousedown()that, when the select is clicked, will set the parameter to the modal windowbg-close=false

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question