Skip to content

Commit

Permalink
#593 cleanly commit edit field before opening date picker, do not try…
Browse files Browse the repository at this point in the history
… to open picker in text-only mode (triggered by key combo)
  • Loading branch information
christianmichaelis committed May 30, 2024
1 parent 33463a7 commit 2a344e7
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1729,7 +1729,12 @@ public void setOpen(boolean open) {

@Override
public void setOpen(boolean open, Runnable callback) {
if (!isDropDown()) {
// no-op for text-only style (may be triggered by CTRL+Space)
return;
}
if (open) {
setActiveField(FIELD_NONE); // commit currently active edit field
cancelDate = getSelection();
createPicker();
} else {
Expand Down

0 comments on commit 2a344e7

Please sign in to comment.