-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
<input :is="textarea"> broken #6361
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
Comments
Didn't @Akryum wrote a similar issue (cannot rely find it on the phone)? |
Nvmd, it was something different
the input + |
Will #6344 fix this issue? |
@mosinve, no, it doesn't. |
vue/src/platforms/web/compiler/directives/model.js Lines 43 to 55 in a1d1145
It seems this commit breaked it. a1d1145#diff-2cd940df9e3891fae0a25ee85235edcdR486 |
Maybe we could check whether This could be a nice first contribution, I'll try to fix it over the weekend in case someone wants to have a try. |
@defcc Agree on all the points! |
@defcc The problem with that idea is The original intention of Unfortunately, the fix by @cwang22 in #6453 will break cases where users are casting For specific cases like component libs, it's probably better to manually handle events instead of using @pi0 I looked at the latest bootstrap-vue code and it seems |
Thanks @yyx990803 for good explanation about |
Version
2.4.2
Reproduction link
https://jsfiddle.net/pi0/qnvcgujb
Steps to reproduce
This is working with 2.3 but not 2.4 anymore: (see provided fiddles)
What is expected?
This was the behavior of 2.3.x:
https://jsfiddle.net/pi0/yL4rwesh
What is actually happening?
When using
:is="textarea"
to dynamically change input type to a text area neither:value
orv-model
are not working anymore. (There is also a common case for both which<component :is="..."
is not working)Using dynamic components is a common usage for component libraries like BootrapVue which user can dynamically change elements behavior. here is the current implementation we are falling back to
v-if
/v-else
as a fix, But is it an intentional breaking change?The text was updated successfully, but these errors were encountered: