Prevent loss of focus when clicking on combobox menu

Fixes #963
This commit is contained in:
John Firebaugh
2013-08-13 17:34:10 -07:00
parent 0844223492
commit 605e44952e
+4
View File
@@ -65,6 +65,10 @@ d3.combobox = function() {
position: 'absolute',
display: 'block',
left: '0px'
})
.on('mousedown', function () {
// prevent moving focus out of the text field
d3.event.preventDefault();
});
d3.select(document.body)