Modal: Disable esc to close a Modal

Modal's have a
closeModalByClickingAway
closeModalByClickingAway
can we get a
closeModalByPressingEsc
closeModalByPressingEsc
? Users get frustrated when they accidentally close the modal when they were trying to clear a autocomplete popup.
2 Replies
Dennis Koch
Dennis Koch2mo ago
can we get a closeModalByPressingEsc
I guess there is no argument against it, if someone PRs it.
awcodes
awcodes2mo ago
Just be aware that removing this option can be considered an a11y violation.