javascript - How to prevent d3-brush from adding "display:none" to .selection and .handle onmousedown -
i noticed after brushing area using d3-brush, if click within brush's extent outside of selection, selection becomes invisible. closer inspection revealed svg rect
elements .selection
and .handle
given display: none
property, in response mousedown
event.
this jsfiddle minimal example of behaviour. drag select within white area, click white area outside of selection.
edit: ivan brought in comments, seems default behaviour empty selections.
how can prevent it? tried adding empty mousedown
event listener .overlay
, doesn't work.
Comments
Post a Comment