-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[mdField] keydown.enter sometimes got InputEvent object as it's v-model value #1160
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
Labels
Comments
This is due a change in Vue 2.5.3. I will change my implementation here to match with those changes. |
After studying #7042#issuecomment-344948474, I tried: <input type='text' v-model='model' v-bind='$attrs'
v-on="{
...$listeners,
input: event => $emit('input', event.target.value)
}"> and it works. Demo: Codepen |
FYI, this happens even on |
Already fixed. Will release this soon! |
marcosmoura
pushed a commit
that referenced
this issue
Nov 27, 2017
* fix(MdInput): Avoid InputEvent object from @input event fix #1160 * fix(MdField): `$emit` missing `this` * fix(MdSelect): declare all MdSelect properties in `data()` and make `MdSelect.modelValue` synced wit * feat(MdField): make 'v-model'/'value' in MdFile, MdInput, MdSelect, MdTextarea optional `MdSelect` could be switched between single and multiple fix #1150 * feat(MdSelect): one way update with `value` * fix(MdOption): let value avaiable to be `0` fix #1203 * fix(MdField): set value default as null * fix(MdField): Remove value default #1196 (comment) * style(MdSelect): brackets for if statement execute block #1196 (comment)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce
In the official website, go to Vue Material - Chips page.
Check Editable model example and insert chips quickly.
Got result like:

I
console.log
that value ininsertChip()
method got this:Which browser?
Google Chrome 62.0.3202.94 (64bit) and Firefox 56.0 (64bit) tested.
What is expected?
v-model
value should always beString
.What is actually happening?
Sometimes got
InputEvent
object.Reproduction Link
https://vuematerial.io/components/chips
The text was updated successfully, but these errors were encountered: