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

Karthik P K kpk at openjdk.org
Sat Dec 10 18:03:02 UTC 2022


On Mon, 28 Nov 2022 12:42:15 GMT, Karthik P K <kpk at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: dadfcaf4
Author:    Karthik P K <kpk at openjdk.org>
Committer: Kevin Rushforth <kcr at openjdk.org>
URL:       https://git.openjdk.org/jfx/commit/dadfcaf43f4bc682aa7a73cbe6f2ede88f89a639
Stats:     185 lines in 2 files changed: 185 ins; 0 del; 0 mod

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

Reviewed-by: angorya, kcr

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

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


More information about the openjfx-dev mailing list