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.7.4] v-autocomplete placeholder text missing after manual reset #20718

Closed
agentschmitt opened this issue Nov 20, 2024 · 3 comments

Comments

@agentschmitt
Copy link

Environment

Vuetify Version: 3.7.4
Vue Version: 3.5.13
Browsers: Chrome 131.0.0.0
OS: Windows 10

Steps to reproduce

Select a value in the autocomplete
Reset the value by updating the model in code (dont click the clear action)

Expected Behavior

The autocomplete shows placeholder text
The autocomplete shows no clear icon, cause we have no value selected!

Actual Behavior

The autocomplete shows as empty
The autocomplete shows a clear icon on hover

Reproduction Link

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

Other comments

some workaround i found is to set the current selected value used for v-model also as key for the combobox, which will make vue rerender it ony every selection change :(

@EvgenyWas
Copy link
Contributor

I believe the first point of the issue is an expected behavior according to this PR.

@MatthewAry
Copy link
Contributor

Duplicate of #20660

@MatthewAry MatthewAry marked this as a duplicate of #20660 Nov 26, 2024
@MatthewAry MatthewAry closed this as not planned Won't fix, can't repro, duplicate, stale Nov 26, 2024
@giuliohome
Copy link

giuliohome commented Nov 27, 2024

Sorry, IMHO this has been introduced with version 3.6.4 and it does not appear to be a duplicate of my other issue.

I've tested that this was the problematic commit and this is currently (after another commit) the if condition (in master branch) that is relevant for this issue (preventing search.value to be reset to the empty value '').

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

4 participants