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

Boolean attributes and draggable="true|false|auto" #2407

Closed
macrojames opened this issue Feb 27, 2016 · 0 comments
Closed

Boolean attributes and draggable="true|false|auto" #2407

macrojames opened this issue Feb 27, 2016 · 0 comments

Comments

@macrojames
Copy link

Vue.js version

1.0.16

I am referring to #2185 and #2169 because upgrading from 1.0.15 to 1.0.16 broke my drag and drop.

According to http://www.w3schools.com/tags/att_global_draggable.asp
"true" is a valid value for the attribute "draggable".

Steps to reproduce

I was using
<div :draggable="isDraggable"></div>
which was working fine until the changes and rendered to <div draggable="true"></div>

<div :draggable.boolean="isDraggable"></div>
renders to <div draggable></div> which is wrong and not working.

Workaround

<div :draggable="isDraggable && 'true'"></div>
renders to <div draggable="true"></div>

You can close this issue with "works as designed",
but i wanted to leave at least the workaround in the issues.

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

No branches or pull requests

1 participant