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

[5.x] Dictionary Fixes #10719

Merged
merged 2 commits into from
Aug 30, 2024
Merged

[5.x] Dictionary Fixes #10719

merged 2 commits into from
Aug 30, 2024

Conversation

duncanmcclean
Copy link
Member

This pull request fixes two issues with the recently added Dictionary fieldtype:

  • Option keys were being displayed in listing tables, rather than the labels.
  • Already selected options were able to be selected, when they shouldn't have been.

Fixes #10713.

If we don't provide this prop, vue-select will look for an `id` property, which our options don't have, so it'll fallback to checking the objects which don't exactly match up.

Ref: https://github.com/sagalbot/vue-select/blob/d2643e37cf24d18e2d1930eea0647f82964b8222/src/components/Select.vue#L352-L388
@jackmcdade jackmcdade merged commit 55e057d into 5.x Aug 30, 2024
18 checks passed
@jackmcdade jackmcdade deleted the dictionary-fixes branch August 30, 2024 19:18
@jackmcdade
Copy link
Member

Nice one!

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

Successfully merging this pull request may close these issues.

Dictionary fieldtype does not work as expected
2 participants