Parcourir la source

avoid page update when awaiting javascript command

Falko Schindler il y a 3 ans
Parent
commit
6c50d2d2bf
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      nicegui/elements/page.py

+ 2 - 1
nicegui/elements/page.py

@@ -85,5 +85,6 @@ class Page(jp.QuasarPage):
             await asyncio.sleep(check_interval)
         return self.waiting_javascript_commands.pop(request_id)
 
-    def handle_javascript_result(self, msg):
+    def handle_javascript_result(self, msg) -> bool:
         self.waiting_javascript_commands[msg.request_id] = msg.result
+        return False