Skip to content

Commit

Permalink
Merge pull request #597 from christianmichaelis/issue#593
Browse files Browse the repository at this point in the history
CDateTime: Fix interference of text editing and opening picker
  • Loading branch information
lcaron authored Jun 2, 2024
2 parents 8f5bccc + 2a344e7 commit 1d505ce
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 1d505ce

Please sign in to comment.