Topic: Modal - unable to scroll content by keyboard
meesha81
priority
asked 4 weeks ago
Open your demo at: https://mdbootstrap.com/docs/standard/components/modal/#section-scrolling-long-content
The second one - with .modal-dialog-scrollable.
First issue: You are not able to scroll via keyboard. Option keyboard:true|false has no effect. I think that use should be able to use keyboard to scroll content with PGUP/PGDOWN, HOME, END and ARROWS.
Second issue: Is it correct that hide events are not fired when keyboard: true ? I would like to destroy content in modal container after hide, but I now, I have to use keyboard:false and check Escape pressed manually. hide events are fired correctly. Is it possible to fire events about show and fire always (= not be affected by keyboard: true|false) ?
meesha81
priority
answered 3 weeks ago
Thank you for information. I am looking forwad to fixed version.
Yes, you are correct - htank you, hidden event is really fired even keyboard: true, I had to make some other mistake during test.
kpienkowska
staff
answered 3 weeks ago
The first issue is a bug, and we will fix it.
About the second issue, if you want to destroy the modal after it's hidden use event hidden
. It fires after the modal is hidden even if keyboard: true.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Priority
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 6.1.0
- Device: PC
- Browser: Chrome
- OS: WIN11
- Provided sample code: No
- Provided link: Yes