-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Cannot remove size attribute of <input>. #3576
Labels
🍰 p2-nice-to-have
Priority 2: this is not breaking anything but nice to have it addressed.
has workaround
A workaround has been found to avoid the problem
🐞 bug
Something isn't working
Comments
duplicate of #3294 |
Hi @edison1105. That issue looked to me like How do I remove the size attribute? |
Is this what you want? <template>
<input ref="el" :size="size" >
</template>
<script>
export default {
data () {
return {
size: 1,
}
},
mounted(){
this.$refs.el.setAttribute('size',1)
this.$refs.el.removeAttribute('size')
}
}
</script> |
maybe we should remove the You should also be able to use an object with |
posva
added
🐞 bug
Something isn't working
🍰 p2-nice-to-have
Priority 2: this is not breaking anything but nice to have it addressed.
has workaround
A workaround has been found to avoid the problem
labels
Apr 9, 2021
yyx990803
pushed a commit
that referenced
this issue
Jul 15, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
🍰 p2-nice-to-have
Priority 2: this is not breaking anything but nice to have it addressed.
has workaround
A workaround has been found to avoid the problem
🐞 bug
Something isn't working
Version
3.0.11
Reproduction link
https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHRlbXBsYXRlPlxuICA8aW5wdXQgOnNpemU9XCJzaXplXCIgPlxuPC90ZW1wbGF0ZT5cblxuPHNjcmlwdD5cbmV4cG9ydCBkZWZhdWx0IHtcbiAgZGF0YSAoKSB7XG5cdFx0cmV0dXJuIHtcbiAgICAgIHNpemU6IG51bGwsXG4gICAgfSBcbiAgfSBcbn1cbjwvc2NyaXB0PiJ9
Steps to reproduce
What is expected?
Renders
<input>
without the size attribute because I specified null for the size.What is actually happening?
An error will occur.
Even if
undefined
is given, an error will occur.The text was updated successfully, but these errors were encountered: