[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    Re: RFR: 8191995: Regression: DatePicker must commit on focusLost
From:       Jeanette Winzenburg <fastegal () openjdk ! java ! net>
Date:       2021-11-30 14:37:11
Message-ID: w_XhRAgSSAhq4uhsKm0-CKgnhz8S5NPlM8pYPOVBKa8=.2dbb46a8-288b-455a-81b7-4eaaa4d1aba8 () github ! com
[Download RAW message or body]

On Wed, 24 Nov 2021 09:09:53 GMT, Marius Hanl <mhanl@openjdk.org> wrote:

> This PR fixes an issue where the `DatePicker` is not committing his value when the \
> focus is lost.  As the ticket also mentions, this is a regression which last worked \
> on JavaFX 8 and got broken by the refactoring: \
> [JDK-8150946](https://bugs.openjdk.java.net/browse/JDK-8150946) 
> The fix is to provide the same api  to the `DatePicker` which was introduced by \
> [JDK-8150946](https://bugs.openjdk.java.net/browse/JDK-8150946) for `ComboBox` and \
> `Spinner`. 
> Note: While fixing this I found a possible bug which I tracked here: \
>                 [JDK-8277756](https://bugs.openjdk.java.net/browse/JDK-8277756)
> -> When creating a `DatePicker` with the second constructor (with `LocalDate` as \
> parameter) two listener won't be added since they are only added at the first \
> constructor (That's also why I added the focusProperty listener in the second \
> constructor).

fix looks good - verified that the new api and its implementation is the exact same \
as in ComboBox. 

Tests look good as well - verified the focused-related test fails/passes before/after \
the fix, all other tests pass after the fix.

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

Marked as reviewed by fastegal (Reviewer).

PR: https://git.openjdk.java.net/jfx/pull/679


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic