From b464182b655be8d331534f0eee47987931e281c0 Mon Sep 17 00:00:00 2001 From: Konstantin Kondov Date: Wed, 22 Jan 2025 15:58:05 +0200 Subject: [PATCH] fix(ui5-notification-list): corrects misusage of ui5-toast The sample in the playground used toast.show() method which was deprecated and this resulted in the ui5-toast not showing in the playground sample Fixes: #10526 --- .../website/docs/_samples/fiori/NotificationList/Basic/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/website/docs/_samples/fiori/NotificationList/Basic/main.js b/packages/website/docs/_samples/fiori/NotificationList/Basic/main.js index 8ac581441e2c..62de9bc9cead 100644 --- a/packages/website/docs/_samples/fiori/NotificationList/Basic/main.js +++ b/packages/website/docs/_samples/fiori/NotificationList/Basic/main.js @@ -14,5 +14,5 @@ notificationList.addEventListener("item-close", e => { menuWithActions.addEventListener("ui5-item-click", function(event) { wcToast.textContent = "Menu button '" + event.detail.text + "' pressed" + " on Notification List Item with id '" + event.target.parentElement.id + "'."; - wcToast.show(); + wcToast.open = true; }); \ No newline at end of file