Skip to content

DDProxy will reset radio inputs when cloneNode==true #1663

Open
@jbalsas

Description

@jbalsas

When using DDProxy, if cloneNode == true, inputs of type radio get reset after dragging the node. This can be verified in this simple test.

The issue is probably caused by DDProxy usage of cloneNode in line 152. When the cloned node contains a checked radio input, the moment the clone node gets appended, it gets marked as the checked radio input of the group, unselecting the original one. Later, when destroying the proxy node, the original never gets checked again.

This can be easily reproduced as well in pure vanilla js

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions