diff --git a/nicegui/elements/notification.js b/nicegui/elements/notification.js index db6d3b418..036a15b06 100644 --- a/nicegui/elements/notification.js +++ b/nicegui/elements/notification.js @@ -6,7 +6,7 @@ export default { this.notification(this.options); }, methods: { - async dismiss() { + dismiss() { this.notification(); }, }, diff --git a/nicegui/elements/notification.py b/nicegui/elements/notification.py index e595f9b8b..dfdeffa32 100644 --- a/nicegui/elements/notification.py +++ b/nicegui/elements/notification.py @@ -43,7 +43,7 @@ def __init__(self, Displays a notification on the screen. In contrast to `ui.notify`, this element allows to update the notification message and other properties once the notification is displayed. - With a timeout of `None`, the notification can be removed with `dismiss()`. + The notification can be removed with `dismiss()`. :param message: content of the notification :param position: position on the screen ("top-left", "top-right", "bottom-left", "bottom-right", "top", "bottom", "left", "right" or "center", default: "bottom")