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

v-model on md-textarea sets the modeled variable to InputEvents #1247

Closed
zevdg opened this issue Dec 1, 2017 · 1 comment · Fixed by #1249
Closed

v-model on md-textarea sets the modeled variable to InputEvents #1247

zevdg opened this issue Dec 1, 2017 · 1 comment · Fixed by #1249
Labels

Comments

@zevdg
Copy link
Contributor

zevdg commented Dec 1, 2017

To reporduce, use v-model in an md-textarea and watch the value of the model

Which browser?

at least chome and firefox
vue-material@1.0.0-beta-6

What is expected?

the string attached to v-model should always remain a string and map to the contents of the textarea (just like md-input)

What is actually happening?

every time the md-textarea is updated, the model is first set to the value of the input event that updated the md-textarea. it is then immediately updated to the correct value, but this momentary alternate type would break any code that assumes that the variable will always be a string and causes unnecessary computation

Reproduction Link

https://codepen.io/zevdg/pen/XzOWma

P.S. you should update your codepen template to use v1.0 It took me way longer to get codepen to load vue-material correctly than any other part of this bug report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment