Commit 6b2155bb by Braden MacDonald

Fix item duplication bug that can occur (due to virtual dom change tracking…

Fix item duplication bug that can occur (due to virtual dom change tracking mixups and jQuery UI draggable clone)
parent af69f859
......@@ -127,7 +127,9 @@
h(
'div.option',
{
key: item.value,
// Unique key for virtual dom change tracking. Key must be different for
// Placed vs Unplaced, or weird bugs can occur.
key: item.value + (item.is_placed ? "-p" : "-u"),
className: className,
attributes: attributes,
style: style
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment