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

docs(Select): add text about track-by usage #4067

Closed
m0ksem opened this issue Dec 5, 2023 · 0 comments · Fixed by #4206
Closed

docs(Select): add text about track-by usage #4067

m0ksem opened this issue Dec 5, 2023 · 0 comments · Fixed by #4206
Labels
d1: super easy Task for newbies. Players take half normal damage from monsters and the environment. docs packages/docs v2: nice to have This will make Vuestic feel better

Comments

@m0ksem
Copy link
Collaborator

m0ksem commented Dec 5, 2023

Near section about text-by and value-by (which are easy thing to understand) add small text about track-by. Likely, user want to use track-by within text-by (but he can ignore track-by if value-by is used). I must be alert with type info.

In case if you're using text-by without value-by, don't forget to add track-by. Otherwise Select may not hightlight correct options if they selected.

If you know how to say it better, you can change the text. The problem here because objects used in value and options can be completely different and to have a way to compare them, we use text-by. For me, selected options were highlighted because objects are the same on frontend. After page reloaded, saved data loaded from backend objects with the same structure are different objects, therefore select wasn't able to compare them because track-by wasn't provided. I'd like users not to fall in this trap.

@m0ksem m0ksem added docs packages/docs d1: super easy Task for newbies. Players take half normal damage from monsters and the environment. v2: nice to have This will make Vuestic feel better labels Dec 5, 2023
gweesin added a commit to gweesin/vuestic-ui that referenced this issue Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
d1: super easy Task for newbies. Players take half normal damage from monsters and the environment. docs packages/docs v2: nice to have This will make Vuestic feel better
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant