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

Input's value does not change after changing data #6172

Closed
whtsky opened this issue Jul 20, 2017 · 4 comments
Closed

Input's value does not change after changing data #6172

whtsky opened this issue Jul 20, 2017 · 4 comments
Labels

Comments

@whtsky
Copy link

whtsky commented Jul 20, 2017

Version

2.4.1

Reproduction link

https://github.com/whtsky/__vue-value-shorthanded

Steps to reproduce

  1. Type something in the input, so the a is changed
  2. Click Clear A button

What is expected?

Input's value=''

What is actually happening?

Input's value did not change

@whtsky whtsky changed the title Input's value not changed after changing data Input's value does not change after changing data Jul 20, 2017
@Kingwl
Copy link
Member

Kingwl commented Jul 20, 2017

add a online demo
https://jsfiddle.net/qbcv68uw/1/

@Kingwl
Copy link
Member

Kingwl commented Jul 20, 2017

https://jsfiddle.net/qbcv68uw/2/
bind value should be a domProps
actually it was attrs
i think #6159 is already fix that
but i cannot test just now
could anyone help me test this?

@Kingwl Kingwl added the pending label Jul 20, 2017
@yyx990803
Copy link
Member

This is a JSX transform issue - see vuejs/babel-plugin-transform-vue-jsx#84

@nickmessing I think it would make sense to treat value and other necessary attributes as domProps by default in babel-plugin-transform-vue-jsx.

@nickmessing
Copy link
Member

@yyx990803, I'll do that in the next few hours, sorry for offtopic but can you please merge my PR in babel-plugin-transform-vue-jsx?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants