Skip to content

Commit

Permalink
Backport PR #3296: fix unmix state when changing value (#3407)
Browse files Browse the repository at this point in the history
Co-authored-by: Kyle Conroy <[email protected]>
  • Loading branch information
meeseeksmachine and kecnry authored Jan 22, 2025
1 parent b988409 commit bbbc01f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jdaviz/core/template_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4562,7 +4562,10 @@ def _on_glue_value_changed(self, value, update_mixed_state=True):
def unmix_state(self, new_value=None):
if new_value is None:
new_value = self.value
self._on_value_changed({'new': new_value})
if new_value != self.value:
self.value = new_value
else:
self._on_value_changed({'new': new_value})
self.sync = {**self.sync,
'mixed': False}

Expand Down

0 comments on commit bbbc01f

Please sign in to comment.