File tree 1 file changed +3
-3
lines changed
packages/python/plotly/plotly
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -642,9 +642,6 @@ def data(self, new_data):
642
642
# ### Check whether a move is needed ###
643
643
if not all ([i1 == i2 for i1 , i2 in zip (new_inds , current_inds )]):
644
644
645
- # #### Update widget, if any ####
646
- self ._send_moveTraces_msg (current_inds , new_inds )
647
-
648
645
# #### Reorder trace elements ####
649
646
# We do so in-place so we don't trigger traitlet property
650
647
# serialization for the FigureWidget case
@@ -664,6 +661,9 @@ def data(self, new_data):
664
661
for ni , trace_data in zip (new_inds , moving_traces_data ):
665
662
self ._data .insert (ni , trace_data )
666
663
664
+ # #### Update widget, if any ####
665
+ self ._send_moveTraces_msg (current_inds , new_inds )
666
+
667
667
# ### Update data defaults ###
668
668
# There is to front-end syncronization to worry about so this
669
669
# operations doesn't need to be in-place
You can’t perform that action at this time.
0 commit comments