mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 15:34:49 +02:00
clicking on combobox caret behaves the same as input
This commit is contained in:
+1
-11
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user