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 .selectionand .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

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -