Skip to content

Commit

Permalink
Do not trigger event if ReplacementPane object identity is unchanged (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Jan 11, 2024
1 parent 445ff15 commit 0fa623f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion panel/pane/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,8 @@ def _update_from_object(cls, object: Any, old_object: Any, was_internal: bool, i
cls._recursive_update(old, new)
elif isinstance(object, Reactive):
cls._recursive_update(old_object, object)
else:
elif old_object.object is not object:
# See https://github.com/holoviz/param/pull/901
old_object.object = object
else:
# Replace pane entirely
Expand Down

0 comments on commit 0fa623f

Please sign in to comment.