瀏覽代碼

it seems updating the parent view is enough to show the notification

Rodja Trappe 3 年之前
父節點
當前提交
896ae065b9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      nicegui/elements/notify.py

+ 1 - 1
nicegui/elements/notify.py

@@ -29,5 +29,5 @@ class Notify(Element):
 
     async def notify_async(self):
         self.view.notify = True
-        await self.wp.update()
+        await self.parent_view.update()
         self.view.notify = False