Skip to content

Commit

Permalink
Fix #3171 doubleclick on autocomplete dropdowns
Browse files Browse the repository at this point in the history
  • Loading branch information
battleofwizards committed Aug 31, 2019
1 parent 0a12676 commit 73c8832
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,15 @@ public final void setOnChangeConfirmed(EventHandler<Event> eh) {
var inputTextItem = getConverter().fromString(inputText);
if (selectedItem != null && selectedItem.equals(inputTextItem)) {
eh.handle(e);
getParent().requestFocus();
return;
}

// Case 2: fire if the text is empty to support special "show all" case
if (inputText.isEmpty())
if (inputText.isEmpty()) {
eh.handle(e);
getParent().requestFocus();
}
});
}

Expand Down

0 comments on commit 73c8832

Please sign in to comment.