Skip to content
  • Rate limit · GitHub

    Access has been restricted

    You have triggered a rate limit.

    Please wait a few minutes before you try again;
    in some cases this may take up to an hour.

  • Notifications You must be signed in to change notification settings
  • Fork 1.1k

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

Closed
@zevdg

Description

@zevdg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      v-model on md-textarea sets the modeled variable to InputEvents · Issue #1247 · vuematerial/vue-material