Skip to content

Commit

Permalink
fix remove event handler with none
Browse files Browse the repository at this point in the history
  • Loading branch information
s-cork committed Feb 23, 2024
1 parent ee68917 commit 6a68daa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client_code/Tabulator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,10 @@ def set_event_handler(self, event, handler):
self.add_event_handler(event, handler)

def remove_event_handler(self, event, handler=None):
super().remove_event_handler(event, handler)
if event is None:
super().remove_event_handler(event)
else:
super().remove_event_handler(event, handler)
if event in ("show", "hide") or event.startswith("x-"):
return
self.off(event, handler)
Expand Down

0 comments on commit 6a68daa

Please sign in to comment.