From f74dc5f22935911a063721d00f40a6c237e441f3 Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Mon, 11 Mar 2013 16:35:45 -0400 Subject: [PATCH] clicking on combobox caret behaves the same as input --- js/lib/d3.combobox.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) 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