-
Notifications
You must be signed in to change notification settings - Fork 4
Conversation
Fix for vaadin#85: Calling dataProvider.refreshItem(item) will reset checkboxgroup. It should instead check for the type of the event fired by data provide, and if it is of type DataChangeEvent.DataRefreshEvent then update only the necessary item.
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.
Hello and thanks for the contribution! It is just missing two method calls and the test case for that specific scenario (see comments).
src/main/java/com/vaadin/flow/component/checkbox/CheckboxGroup.java
Outdated
Show resolved
Hide resolved
src/main/java/com/vaadin/flow/component/checkbox/CheckboxGroup.java
Outdated
Show resolved
Hide resolved
src/test/java/com/vaadin/flow/component/checkbox/tests/CheckboxGroupTest.java
Outdated
Show resolved
Hide resolved
@campbellbartlett if you don't have time to contribute the changes before Monday, we can do those instead. We are refactoring the project structure and want to merge this PR before land those changes since otherwise there will be merge conflicts. |
Thanks for the review! |
We had to merge the other PR with the refactoring, so this PR has now conflicts. Sorry about that. |
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.
👍 but changes need to be applied to a new location due to the refactoring of the project to the multiple projects.
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.
Reviewed 2 of 2 files at r2.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @pleku)
SonarQube analysis reported 2 issues Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:
|
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.
Reviewed 4 of 4 files at r3.
Reviewable status: complete! all files reviewed, all discussions resolved
Fixes #85 Calling dataProvider.refreshItem(item) will reset checkboxgroup. It should instead check for the type of the event fired by data provide, and if it is of type DataChangeEvent.DataRefreshEvent then update only the necessary item.
This change is