Skip to content

Commit

Permalink
Ensure Reactive objects are re-rendered correctly (#4868)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored May 17, 2023
1 parent 753cc20 commit b2e5d13
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions panel/pane/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,12 +660,15 @@ def _update_from_object(cls, object: Any, old_object: Any, was_internal: bool, i
equal = False
if not equal:
new_params[k] = v
changing = any(p in old_object._rerender_params for p in new_params)
old_object._object_changing = changing
try:
if isinstance(object, PaneBase):
changing = any(p in old_object._rerender_params for p in new_params)
old_object._object_changing = changing
try:
old_object.param.update(**new_params)
finally:
old_object._object_changing = False
else:
old_object.param.update(**new_params)
finally:
old_object._object_changing = False
else:
old_object.object = object
else:
Expand Down

0 comments on commit b2e5d13

Please sign in to comment.