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.8] v-autocomplete | after selection and setting items asynchronously, menu re-opens #19346

Closed
emikoshi opened this issue Mar 6, 2024 · 3 comments
Labels
C: VAutocomplete VAutocomplete C: VCombobox VCombobox C: VSelect VSelect T: bug Functionality that does not work as intended/expected

Comments

@emikoshi
Copy link

emikoshi commented Mar 6, 2024

Environment

Vuetify Version: 3.5.8
Vue Version: 3.4.21
Browsers: Chrome 122.0.0.0
OS: Mac OS 10.15.7

Steps to reproduce

  • Select option from dropdown

Expected Behavior

Menu should stay closed after items data is updated regardless of how.

Actual Behavior

Menu will open after items data is updated.

Reproduction Link

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

Other comments

I added a button to show that programmatically setting items works fine, even with some delay. Also if the watcher delay is removed the menu stays closed. This affects v-select and probably v-combobox as well.

I tried the hide-no-data prop to see if that would help but didn't seem to have any affect, since there are items initially present it's probably not relevant.

@KaelWD
Copy link
Member

KaelWD commented Mar 6, 2024

Broken by 12c9e27

@yuwu9145
Copy link
Member

yuwu9145 commented Mar 12, 2024

@KaelWD Should the menu only open when items array changes if "hide-no-data" is used, or is "hide-no-data" completely irrelevant in this context?

@KaelWD
Copy link
Member

KaelWD commented Mar 12, 2024

The old logic was open if !oldVal.length && val.length

@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 Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VAutocomplete VAutocomplete C: VCombobox VCombobox C: VSelect VSelect T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

No branches or pull requests

3 participants