diff --git a/js/lib/d3.combobox.js b/js/lib/d3.combobox.js index aaf7a3700..fa452c6ae 100644 --- a/js/lib/d3.combobox.js +++ b/js/lib/d3.combobox.js @@ -19,7 +19,7 @@ d3.combobox = function() { selection.append('a', selection.select('input')) .attr('class', 'combobox-carat') .on('mousedown', stop) - .on('click', click); + .on('mousedown', mousedown); function updateSize() { var rect = selection.select('input') @@ -39,16 +39,6 @@ d3.combobox = function() { d3.event.preventDefault(); } - function click() { - d3.event.preventDefault(); - d3.event.stopPropagation(); - update(); - show(); - // focus the node so that a click outside of the - // combo box will hide it - input.node().focus(); - } - function blur() { // hide the combobox whenever the input element // loses focus