You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry to send you back to the core repo, but this is a duplicate of vuejs/vue#8379
It is in fact related to Vue core, or rather vue-template-compiler. That ticket has been open for quite some time, it seemed to be an edge case but maybe we need to get at it again.
Version
4.1.1
Reproduction link
https://github.com/rs3d/vuejs-input-type-binding-issue
Environment info
@vue/cli-plugin-babel/preset
Steps to reproduce
I'm trying to create a simple
<input>
-element component, which has dynamic type bindingslike
<input[:type="text|number|tel|email|radio|checkbox"]>
.The following template-example-code is working as intended in all browsers,
but IE10 and IE11 is throwing an error, when this code is used:
data.checkbox = []
What is expected?
Standard :type-bindings similar to value-bindings like the input[radio]:value example in the docs:
https://vuejs.org/v2/guide/forms.html#Radio-1
First I've thought it's related with vuejs directly, but a basic example without transpilation is working as expected:
vuejs/vue#10945 (comment)
What is actually happening?
IE10/11 error message:
IE9 is working though.
Even if I'm using
:type="'checkbox'"
to bind it directly to a string, it's not working in IE.So currently I need to use
type="checkbox"
with anv-if="type ==='checkbox'"
condition as workaround.The text was updated successfully, but these errors were encountered: