Skip to content

Vue 2 - input value is not updated in some cases #3787

@sqal

Description

@sqal

Vue.js version

2.0.0.rc.7 and older

Reproduction Link

https://jsfiddle.net/Lonzpg7h/

Steps to reproduce

  1. Type one letter into input field - value won't show up but console logs that event was fired
  2. Type more text - you will see now that value is updating correctly
  3. Now repeat step 1 but with removed this.isDirty = value !== '' or 'is-dirty': this.isDirty declaration - value shows up immediately

What is Expected?

I think input value should be visible on the first keystroke as well

What is actually happening?

In some case input value doesn't show up until you enter text for the second time.

Any idea what's going on here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions