Skip to content

Commit

Permalink
Tmp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dy committed Jun 27, 2018
1 parent b3fb445 commit e09a4e1
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/traces/scattergl/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -862,11 +862,16 @@ function selectPoints(searchInfo, polygon) {
// update texts selection
if(hasText) {
var textOptions = {};
if(els) {
applyTextoption(textOptions, els, scene.selectedOptions[stash.index]);
if (els && unels) {
if(els) {
applyTextoption(textOptions, els, scene.selectedOptions[stash.index]);
}
if(unels) {
applyTextoption(textOptions, unels, scene.unselectedOptions[stash.index]);
}
}
if(unels) {
applyTextoption(textOptions, unels, scene.unselectedOptions[stash.index]);
else {
// TODO: reset unselected style properly
}

scene.glText[stash.index].update(textOptions);
Expand Down

0 comments on commit e09a4e1

Please sign in to comment.