Topic: MDBModal need to disable escape key press
                  
                  innovative23
                  pro
                  asked 6 years ago
                
Expected behavior I want to disable K/b event for escape key. So, even if user hits Escape button from k/b the Modal should not be closed.
This is available in your angular version => https://mdbootstrap.com/legacy/angular/6.2.1/?page=advanced/modals#options
Actual behavior
No option in MDBModal React to disable escape key.
Resources (screenshots, code snippets etc.)
                      
                      januszveiro
                      free
                        answered 2 years ago
                    
This is still an issue in MDB4.
Would you mind reviewing and merging this PR? https://github.com/mdbootstrap/mdb4-react-ui-kit/pull/18
                      
                      Pavel Homal
                      free
                        answered 5 years ago
                    
Hi!
Is it implemented already? I noticed that API page of MDBModal contains keyboard option description.
                      
                      Piotr Glejzer
                      staff
                        answered 6 years ago
                    
Hi, 
Yes, you are right. We don't have this option in React Modals. It's a nice feature so we can implement this in our package. I added task for that. Thanks for the report and have a nice day. 
Best,
Piotr
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Pro
- Premium support: No
- Technology: MDB React
- MDB Version: 4.19.2
- Device: Laptop
- Browser: Chrome
- OS: Windows
- Provided sample code: No
- Provided link: Yes