Skip to content

Commit

Permalink
Fix update of ReactiveHTML events property
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Mar 31, 2021
1 parent e21f41f commit 2e9b59e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion panel/reactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,7 @@ def _update_model(self, events, msg, root, model, doc, comm):
for prop, v in list(msg.items()):
if prop in child_params:
new_children[prop] = prop
elif prop in Reactive.param:
elif prop in list(Reactive.param)+['events']:
model_msg[prop] = v
elif prop in self.param and (self.param[prop].precedence or 0) < 0:
continue
Expand Down Expand Up @@ -1382,4 +1382,5 @@ def on_event(self, node, event, callback):
self._event_callbacks[node][event].append(callback)
events = self._get_events()
for ref, (model, _) in self._models.items():
print(model)
self._apply_update([], {'events': events}, model, ref)

0 comments on commit 2e9b59e

Please sign in to comment.