RFR: 8279140: ComboBox can lose selected value on item change via setAll [v2]

Karthik P K kpk at openjdk.org
Wed May 15 05:54:12 UTC 2024


On Thu, 9 May 2024 09:38:31 GMT, Karthik P K <kpk at openjdk.org> wrote:

>> The `ComboBox` value was not set to previously selected value in the item list change listener when `setAll` method is used to change the items. Fixed the issue by restoring the selection in this case.
>> 
>> Added a unit test to validate the fix.
>> [JDK-8279139](https://bugs.openjdk.org/browse/JDK-8279139) is also fixed with this change and added a unit test for the same.
>
> Karthik P K has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Fix JDK-8279139

Yes there are few bugs related to ComboBox.
I think we can fix JDK-8090221 separately. The issue JDK-8279139, which is closed as duplicate of this issue is fixed, but changing the test slightly shows another issue which is mentioned in JDK-8263942. Since we have different scenarios like these, we can fix these issue with these PRs one by one. So I believe other issues can be fixed separately.

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

PR Comment: https://git.openjdk.org/jfx/pull/1452#issuecomment-2111637496


More information about the openjfx-dev mailing list