mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 21:28:11 +02:00
Show combobox if we are moving from a different active combobox
(closes #5752) Previously it would go down the `hide()` branch anytime an existing combobox was active.
This commit is contained in:
@@ -96,8 +96,9 @@ export function uiCombobox(context, klass) {
|
||||
var end = input.property('selectionEnd');
|
||||
if (start !== end) return; // exit if user is selecting
|
||||
|
||||
// not showing or showing for a different field - try to show it.
|
||||
var combo = container.selectAll('.combobox');
|
||||
if (combo.empty()) { // not showing - try to show it.
|
||||
if (combo.empty() || combo.datum() !== input) {
|
||||
var tOrig = _tDown;
|
||||
window.setTimeout(function() {
|
||||
if (tOrig !== _tDown) return; // exit if user double clicked
|
||||
|
||||
Reference in New Issue
Block a user