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
Editable dropdown mode, return code causes label to be lost. #993
Comments
It only occurs the first time a custom input is made. |
Thanks for the detailed explanation! This is a tricky scenario, that really comes down to This problem occurs because when you're using
<v-select taggable
v-model="UserData.Level"
label="label"
:options="SourceData.Level"
:create-option="text => {
const option = { label: text, code: -1 };
SourceData.Level.push(option)
return option;
}"
:reduce="item => item.code">
</v-select> This is a bit gross, and requires the consumer to know way too much about how vue select works. I'll need some time to fix the underlying issue. |
yep, best wishes. :) |
🎉 This issue has been resolved in version 3.8.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Describe the bug
I used attributes:
taggable, create-option, reduce
Editable dropdown mode, return
code
causeslabel
to be lost.When I input ABC by myself and press OK, it will display -1 and return -1
Expected behavior
I expect it to display user input‘s content and return my defined values.
e.g.: user input: ABC, display in the input box: ABC, return -1.
Desktop (please complete the following information):
Additional context
My code:
HTML:
Javascript:
The text was updated successfully, but these errors were encountered: