Skip to content

Commit 0fa623f

Browse files
authored
Do not trigger event if ReplacementPane object identity is unchanged (#6183)
1 parent 445ff15 commit 0fa623f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

panel/pane/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,8 @@ def _update_from_object(cls, object: Any, old_object: Any, was_internal: bool, i
677677
cls._recursive_update(old, new)
678678
elif isinstance(object, Reactive):
679679
cls._recursive_update(old_object, object)
680-
else:
680+
elif old_object.object is not object:
681+
# See https://github.com/holoviz/param/pull/901
681682
old_object.object = object
682683
else:
683684
# Replace pane entirely

0 commit comments

Comments
 (0)