Topic: Closing toasts manually prevents new toasts
Dave Moniz premium priority asked 3 years ago
Related to the discussion at this ticket: https://mdbootstrap.com/support/angular/toasts-not-closed-with-button/
Expected behavior
When I close toasts manually (clicking the x) I should be able to create new toasts.
Actual behavior
When I close the last (if more than one) toast I cannot create new toasts and I'm presented with this error:
core.js:6210 ERROR TypeError: Cannot read property 'getBoundingClientRect' of null
at MdbNotificationRef.getPosition (mdb-angular-ui-kit-notification.js:39)
at MdbNotificationService._setOffset (mdb-angular-ui-kit-notification.js:143)
at MdbNotificationService._getPositionStrategy (mdb-angular-ui-kit-notification.js:158)
at MdbNotificationService._getOverlayConfig (mdb-angular-ui-kit-notification.js:149)
at MdbNotificationService._createOverlay (mdb-angular-ui-kit-notification.js:132)
at MdbNotificationService.open (mdb-angular-ui-kit-notification.js:107)
Dave Moniz premium priority answered 3 years ago
Closed
This topic is closed.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Closed
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: MDB5 1.0.0-beta5
- Device: PC
- Browser: Google Chrome
- OS: Arch Linux
- Provided sample code: No
- Provided link: Yes
Arkadiusz Idzikowski staff commented 3 years ago
@Dave Moniz We prepared some improvements for Toasts/Alerts for beta8 update. We will check if this problem still occurs.