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

[Bug Report][3.5.16] VAutocomplete value-comparator uses deep value for b #19669

Closed
NickdeK opened this issue Apr 23, 2024 · 1 comment
Closed
Assignees

Comments

@NickdeK
Copy link

NickdeK commented Apr 23, 2024

Environment

Vuetify Version: 3.5.16
Last working version: 3.3.15
Vue Version: 3.4.24
Browsers: Chrome 124.0.0.0
OS: Mac OS 10.15.7

Steps to reproduce

  1. Have a v-model with a object to preselect a item
  2. Open the dropdown

Expected Behavior

Item from the v-model should be selected in the list

Actual Behavior

No item is selected from the list

Reproduction Link

https://play.vuetifyjs.com/#...

Other comments

It seems that the value from the object is being passed into the value-comparator which does not have the key used in the parent list item object to compare to.

A workaround for the moment is to utilize the value-comparator prop on the component to make your own comparison.

@yuwu9145 yuwu9145 self-assigned this May 3, 2024
@yuwu9145 yuwu9145 added T: bug Functionality that does not work as intended/expected C: VSelect VSelect C: VCombobox VCombobox C: VAutocomplete VAutocomplete and removed S: triage labels May 3, 2024
@yuwu9145
Copy link
Member

yuwu9145 commented May 3, 2024

Change item-key to item-value

@yuwu9145 yuwu9145 closed this as not planned Won't fix, can't repro, duplicate, stale May 3, 2024
@yuwu9145 yuwu9145 removed T: bug Functionality that does not work as intended/expected C: VSelect VSelect C: VCombobox VCombobox C: VAutocomplete VAutocomplete labels May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants