-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8279140: ComboBox can lose selected value on item change via setAll #1452
8279140: ComboBox can lose selected value on item change via setAll #1452
Conversation
👋 Welcome back kpk! A progress list of the required criteria for merging this PR into |
@karthikpandelu This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 6 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
Webrevs
|
I missed to validate the test case present in JDK-8279139 and looks like it is not yet fixed. Hence I will change this PR to draft for now |
It looks like we have quite a few bugs related to different aspects of ComboBox. This change is definitely an improvement, as it fixes the scenario described in JDK-8279140. This PR changes parts of the code that fixed JDK-8087838. While I don't see a regression in respect to JDK-8087838, I do see a different behavior with and without this fix in JDK-8090221, using the test app there (to be specific, with the fix in this PR, the tester in JDK-8090221 continues to display the selected item in the combo box even though the output shows Do you think that JDK-8090221 scenario is a different case and should be addressed separately? |
Yes there are few bugs related to ComboBox. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good. thank you for adding the tests!
Thanks for reviewing @andy-goryachev-oracle |
/integrate |
Going to push as commit 88aad93.
Your commit was automatically rebased without conflicts. |
@karthikpandelu Pushed as commit 88aad93. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
The
ComboBox
value was not set to previously selected value in the item list change listener whensetAll
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 is also fixed with this change and added a unit test for the same.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/1452/head:pull/1452
$ git checkout pull/1452
Update a local copy of the PR:
$ git checkout pull/1452
$ git pull https://git.openjdk.org/jfx.git pull/1452/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1452
View PR using the GUI difftool:
$ git pr show -t 1452
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/1452.diff
Webrev
Link to Webrev Comment