-
Notifications
You must be signed in to change notification settings - Fork 622
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
fix(Input/Textarea): add v-model
modifiers
#856
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ
|
Autoresize in onInput without .lazy
@benjamincanac this is ready to merge or another QA if you want |
I'm not sure to understand why we need to do this, the default |
Check the Issue that is linked. The .lazy will not work as in UInput you update the value @ input and no @ change event is implemented. As the native v-model.lazy will transpile into :value and @ change. Number works but the native input has the behaviour of applying the .number modifier if you do type="number". Trim and default .number behaviour will work, just added them for completion. |
Ok got it, thanks for the explanation! Will review this asap π |
v-model
modifiers
Thanks! π |
π Linked issue
Resolves #853
β Type of change
π Description
Implements the v-model modifiers for UInput and UTextarea. Possible modifiers are .lazy .number and .trim v-model docs
.lazy will update the modelValue onChange
.number will return the value as typeof number (if parseable) the function to parse a number is from the offical vue repo.
.trim will trim the string
π Checklist