Topic: Using Alerts: "Bootstrap doesn't allow more than one instance per element. Bound instance: bs.alert."
softcon premium asked 11 months ago
Toast alert message with close button and auto-fade.
Resources (screenshots, code snippets etc.)
It seems to only happen if using the auto-fade out system.
Autohide didn't work because the
show class was used. It overwrote autohide behavior. You need to manually show toast with
mdb.Toast.getInstance(document.getElementById('_er')).show();. Here is the snippet: https://mdbootstrap.com/snippets/standard/d-wajszczuk/3631410.
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Premium
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 3.10.1
- Device: PC
- Browser: All
- OS: Windows
- Provided sample code: No
- Provided link: Yes