File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -595,8 +595,8 @@ TraceManager.prototype.updateSelection = function(group, keys) {
595
595
var nNewTraces = this . gd . data . length - this . origData . length ;
596
596
if ( keys === null || ! this . highlight . persistent && nNewTraces > 0 ) {
597
597
var tracesToRemove = [ ] ;
598
- for ( var i = this . origData . length ; i < this . gd . data . length ; i ++ ) {
599
- tracesToRemove . push ( i ) ;
598
+ for ( var i = 0 ; i < this . gd . data . length ; i ++ ) {
599
+ if ( this . gd . data [ i ] . _isCrosstalkTrace ) tracesToRemove . push ( i ) ;
600
600
}
601
601
Plotly . deleteTraces ( this . gd , tracesToRemove ) ;
602
602
this . groupSelections [ group ] = keys ;
@@ -678,6 +678,7 @@ TraceManager.prototype.updateSelection = function(group, keys) {
678
678
// (necessary for updating frames to reflect the selection traces)
679
679
trace . _originalIndex = i ;
680
680
trace . _newIndex = this . gd . _fullData . length + traces . length ;
681
+ trace . _isCrosstalkTrace = true ;
681
682
traces . push ( trace ) ;
682
683
}
683
684
}
You can’t perform that action at this time.
0 commit comments