From c90066f4b9ebe2b3c000ef7191ca4d82ae0c4df8 Mon Sep 17 00:00:00 2001 From: Serhii Kulykov Date: Fri, 27 Dec 2024 10:31:17 +0200 Subject: [PATCH] fix: get the correct reference to the Notification class (#8399) --- packages/notification/src/vaadin-notification-mixin.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/notification/src/vaadin-notification-mixin.js b/packages/notification/src/vaadin-notification-mixin.js index 23f99e25a0..1fc3ee037f 100644 --- a/packages/notification/src/vaadin-notification-mixin.js +++ b/packages/notification/src/vaadin-notification-mixin.js @@ -228,6 +228,7 @@ export const NotificationMixin = (superClass) => /** @private */ get _container() { + const Notification = customElements.get('vaadin-notification'); if (!Notification._container) { Notification._container = document.createElement('vaadin-notification-container'); document.body.appendChild(Notification._container);