Topic: Alert cannot be shown again after reduced motion dismissal
Ava Brooks
asked 4 weeks ago
A reusable alert works repeatedly with animations enabled. After disabling animations, dismissing it prevents the next message from appearing.
How can I keep its lifecycle state consistent?
Igor Przybysz
staff pro premium priority answered 3 weeks ago
Please check whether dismissal leaves the alert element in the DOM or removes it. A reference to a removed element cannot display the next message; if your application recreates that markup, it must use an instance associated with the new element. For a reusable notification, distinguish hiding an existing alert from closing and discarding it.
If the element remains attached but only fails with reduced motion, please send the show/dismiss sequence and relevant CSS in a runnable snippet. Avoid changing internal component flags to reopen it: that can hide the original lifecycle problem and make subsequent messages inconsistent.
https://mdbootstrap.com/docs/standard/components/alerts/
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: MDB Standard
- MDB Version: MDB5 8.1.0
- Device: Laptop
- Browser: Chrome
- OS: Windows 11
- Provided sample code: No
- Provided link: No