Explorar o código

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

Rodja Trappe %!s(int64=3) %!d(string=hai) anos
pai
achega
896ae065b9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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