clicking on combobox caret behaves the same as input

This commit is contained in:
Ansis Brammanis
2013-03-11 16:35:45 -04:00
parent 86518a071b
commit f74dc5f229
+1 -11
View File
@@ -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