RFR: 8295339: DatePicker updates its value property with wrong date when dialog closes

Karthik P K kpk at openjdk.org
Wed Dec 7 17:53:00 UTC 2022


Cause: On hiding the DatePicker dropdown, value selected was not getting updated to the text editor. Hence old value from the text editor was getting committed to DatePicker on focus loss. This issue was seen only when DatePicker is used in Alert dialog and Alert dialog is closed on making selection in DatePicker dropdown.

Fix: Added call to updateDisplayNode() function before hiding the date picker dropdown.

Test: Added system test to validate the fix.

-------------

Commit messages:
 - Correct line endings and file permission
 - Add system test to verify datePicker issue fix
 - Merge branch 'master' into datePicker_issue_fix
 - Fix for DatePicker wrong value update

Changes: https://git.openjdk.org/jfx/pull/963/files
 Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=963&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8295339
  Stats: 184 lines in 2 files changed: 184 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jfx/pull/963.diff
  Fetch: git fetch https://git.openjdk.org/jfx pull/963/head:pull/963

PR: https://git.openjdk.org/jfx/pull/963


More information about the openjfx-dev mailing list