[✨] A way to clone elements #260
Replies: 4 comments
-
|
How did you solve this specific task? |
Beta Was this translation helpful? Give feedback.
-
|
By reactivity you're talking about signals. So you can clone the html and any QRL should work but when you run into signals then them embedded data becomes an issue. You can also use context and if you have an issue with keys you can use uuids. If you have examples of what you're doing then it would make it easier to understand. |
Beta Was this translation helpful? Give feedback.
-
|
@Dindaleon can't you solve this using components? You know what you are dragging, so you can render it twice? |
Beta Was this translation helpful? Give feedback.
-
|
We moved this issue to |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem?
I am making a drag and drop interface for my clients and would like to have a way to clone elements and keep their reactivity.
Describe the solution you'd like
I would like to have something like React with
React.cloneElement()Describe alternatives you've considered
At the moment i am using the default
element.cloneNode(true)but its reactivity is being lost.Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions