visma-meglerfront / sweet-modal-vue

The sweetest library to happen to modals.
Other
757 stars 85 forks source link

Option for enabling escape key with blocking #95

Open johnlimpin opened 4 years ago

johnlimpin commented 4 years ago

May we request a feature that we can enable the blocking feature but keep the escape button working? Our client only wants blocking the user when clicking outside the modal, but still want the escape button working. So that we can remove extra codes e.g. addEventListeners per every component that uses sweet modal.

Thanks!

johnlimpin commented 4 years ago

Here's the forked version to show what I am after. If you find it useful please let me know so I can submit pull request.

https://github.com/johnlimpin/sweet-modal-vue/commits/master