Skip to content

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

@macrojames

Description

@macrojames

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions