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:
Bryan Housel
2019-01-28 16:20:34 -05:00
parent 34ecd14da8
commit af8fb1d758
+2 -1
View File
@@ -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