Skip to content

Commit 9795b69

Browse files
committed
avoid NaN in (un)selected.marker.opacity
NaN !== NaN wat was breaking Plotly.react.
1 parent 9ba4be9 commit 9795b69

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/coerce.js

+3
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,9 @@ exports.coerceSelectionMarkerOpacity = function(traceOut, coerce) {
406406
if(!traceOut.marker) return;
407407

408408
var mo = traceOut.marker.opacity;
409+
// you can still have a `marker` container with no markers if there's text
410+
if(mo === undefined) return;
411+
409412
var smoDflt;
410413
var usmoDflt;
411414

0 commit comments

Comments
 (0)