Closing modal with ESC conflict
Unlimited23 opened this issue · comments
Petyo Ruzhin commented
I have a modal on which I've set both properties: no-close-on-esc
, no-close-on-backdrop
to true
. Backdrop works fine - clicking outside doesn't close the modal but it conflicts with the functionality of ESC button. What I mean is:
- If I click outside of modal (backdrop is probably set to true) and then press ESC the modal doesn't close but the expected behaviour would be to close the modal.
- However, if I click back somewhere inside the modal (backdrop is probably set to false) click ESC works as expected.
Anyhow, clicking on ESC when no-close-on-esc
is set to true should always close the modal and it shouldn't be dependent on backdrop parameter, IMO. (ESC > backdrop)