Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upisBooleanAttr for the HTML attribute 'translate' #11391
Open
Labels
Comments
Maybe we should just remove it from the list. I don't know the reason it was initially added |
Hi @EtienneBruines |
Yes, please, go ahead. |
nowres
added a commit
to nowres/vue
that referenced
this issue
May 13, 2020
…ctly the key as it's value when present, translate attribute had translate as it's value, which is not valid, the value should remain as specified by the user, that's why we removed it form isBooleanAttr map fix vuejs#11391
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
2.6.11
Reproduction link
https://jsfiddle.net/hgaL8t5n/
Steps to reproduce
Use translate=no in a template
What is expected?
template=no to be rendered in the HTML
What is actually happening?
translate=translate is being rendered instead
You can use devtools to inspect the rendered HTML in the reproducible JSFiddle example.
There is a isBooleanAttr-variable somewhere in the Vue code which marks
translate
as a boolean, probably to be used like thedisabled
attribute works.This is incorrect for two reasons: