Topic: Closing toasts manually prevents new toasts
Related to the discussion at this ticket: https://mdbootstrap.com/support/angular/toasts-not-closed-with-button/
When I close toasts manually (clicking the x) I should be able to create new toasts.
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)
Can confirm this is resolved as of MDB5 1.0.0-beta8.
This topic is closed.
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Pro
- Premium support: Yes
- 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