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

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

nginx - phpPgAdmin - log in works but I have to login again after clicking on any links -