-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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.4.2] Autocomplete initial value #18737
Comments
Not a bug - #4000 |
|
Would this be documentation related @KaelWD ? |
If my understandings were correct, conclusions from these two issues are contradictive. And screenshot gif does show a inconsistent symptom "Once blurred, empty string isn't legit anymore" Therefore, need a final decision of "Are select/autocomplate allowed to show any value that doesn't exist in the items"? |
We implemented it as a behaviour change in v3 |
Ok, that makes sense. Now the conclusion lands as arbitrary v-model should be respected as input display values, except for But, issue shown in above gif still valid. I will amend my PR to respect '' during blur |
@JChrist |
Please add an alert about this information on the docs. |
Environment
Vuetify Version: 3.4.2
Last working version: 2.7.1
Vue Version: 3.3.8
Browsers: Chrome 119.0.0.0
OS: Linux x86_64
Steps to reproduce
Expected Behavior
The Autocomplete should discard the non-matching initial value, as it is not contained in the items
Actual Behavior
The Autocomplete component renders with the invalid initial value.
Reproduction Link
https://play.vuetifyjs.com/#...
Other comments
This functionality was useful in order to bind an empty element to the component (such as empty string). The component would render properly without containing the empty value (the label would stay down, same as not binding any model value).
I can see in the migration guide that this is included and described as a behavior change:
However, I cannot seem to find any way to restore this behavior.
The text was updated successfully, but these errors were encountered: