Skip to content
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

fix: Use incremental numeric id as a key for Tree Grid items (#3046) (CP: 14.8) #3126

Merged
merged 1 commit into from
May 4, 2022

Conversation

sissbruecker
Copy link
Contributor

Cherry pick of: #3046

(cherry picked from commit 8fe0861)

* fix: Use incremental numeric id as a key for Tree Grid items

Using Object::toString as an item's key for server-client communication makes item's data visible on the client side, so generated numeric id is used instead.

* Use serializable map

* Use index and depth as an item ID

* fix data provider getId implementation

* use custom unique key provider in tests

Co-authored-by: Soroosh Taefi <taefi.soroosh@gmail.com>
Co-authored-by: Sascha Ißbrücker <sissbruecker@vaadin.com>

(cherry picked from commit 8fe0861)
@sissbruecker sissbruecker merged commit 262e652 into 14.8 May 4, 2022
@sissbruecker sissbruecker deleted the fix/treegrid_key_provider_14 branch May 4, 2022 12:34
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 14.8.10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants