Skip to content

Commit

Permalink
Merge pull request #3172 from battleofwizards/fix-doubleclick-on-auto…
Browse files Browse the repository at this point in the history
…complete-dropdowns

Fix #3171 doubleclick on autocomplete dropdowns
  • Loading branch information
ripcurlx authored Sep 2, 2019
2 parents e6d5429 + 73c8832 commit f972984
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 f972984

Please sign in to comment.