Skip to content

Commit

Permalink
Potential patch of issues in commit 4941ddc
Browse files Browse the repository at this point in the history
  • Loading branch information
c00lc0de committed Nov 5, 2021
1 parent 8efbc46 commit b0a321d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nicegui/elements/value_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def value_to_view(self, value):

def handle_change(self, msg):
self.value = msg['value']
handle_event(self.change_handler, ValueChangeEventArguments(sender=self, value=self.value))
handle_event(self.change_handler, ValueChangeEventArguments(sender=self, value=self.value), update_view=True)

def bind_value_to(self, target_object, target_name, *, forward=lambda x: x):
bind_to(self, 'value', target_object, target_name, forward=forward)
Expand Down
2 changes: 1 addition & 1 deletion nicegui/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ async def async_handler():
if asyncio.iscoroutinefunction(handler):
await call
if update_view:
await arguments.sender.parent_view.update()
await arguments.sender.page.update()
except Exception:
traceback.print_exc()
asyncio.get_event_loop().create_task(async_handler())

0 comments on commit b0a321d

Please sign in to comment.