mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
If combobox is open, clicking on carat should close it
This commit is contained in:
@@ -44,8 +44,12 @@ d3.combobox = function() {
|
||||
// on mousedown
|
||||
d3.event.stopPropagation();
|
||||
d3.event.preventDefault();
|
||||
input.node().focus();
|
||||
fetch('', render);
|
||||
if (!shown) {
|
||||
input.node().focus();
|
||||
fetch('', render);
|
||||
} else {
|
||||
hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user