vuejs / core

🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
https://vuejs.org/
MIT License
47.75k stars 8.35k forks source link

ATTR_ENUMERATED_COERCION coerces draggable="false" to draggable="true" #12444

Open decademoon opened 2 days ago

decademoon commented 2 days ago

Vue version

3.5.13

Link to minimal reproduction

https://jsfiddle.net/asdot1u7/

Steps to reproduce

Run the fiddle.

What is expected?

draggable="false" is set on the element.

What is actually happening?

draggable="true" is set on the element.

System Info

No response

Any additional comments?

Vue version Template Rendered DOM Fiddle
2.7 draggable="false" draggable="false" fiddle
3 draggable="false" draggable="false" fiddle
3 compat draggable="false" draggable="true" (incorrect) fiddle
Kanade-Lu commented 2 days ago
:draggable="false" 

will work as expected