bootstrap-vue / bootstrap-vue

BootstrapVue provides one of the most comprehensive implementations of Bootstrap v4 for Vue.js. With extensive and automated WAI-ARIA accessibility markup.

Home Page:https://bootstrap-vue.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Closing modal with ESC conflict

Unlimited23 opened this issue · comments

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:

  1. 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.
  2. 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)