starter icon indicating copy to clipboard operation
starter copied to clipboard

Allow dropping components to the nested container component.

Open Rahul139-stack opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe. We have accordion and accordion item component that are both containers. We are able to drop accordion item into accordion. And we would like to drop the other component to accordion item container.

Describe the solution you'd like. We would like to see drop target for accordion and accordion item at the same time.

Rahul139-stack avatar Dec 14 '22 05:12 Rahul139-stack

Hi, I want to confirm if I understand the issue. We support showing a drop target for empty containers, so you are able to show a drop target for:

  • an empty Accordion: Screenshot 2022-12-14 at 11 12 52
  • an empty Accordion Item container: Screenshot 2022-12-14 at 11 13 03

But if I understand correctly: you want to show something like that: Screenshot 2022-12-14 at 11 44 45

Am I right?

paweljozwicki avatar Dec 14 '22 10:12 paweljozwicki

Hi @paweljozwicki ,Thanks for helping us. But we not able to drag any components to the parent accordion(Prime vue accordion) directly. When we edit the parent accordion, then able to drag those component easily. 1.Not able to drop here. MicrosoftTeams-image (7) 2.Able to drag the component here after edit submit. MicrosoftTeams-image (5)

Rahul139-stack avatar Dec 15 '22 05:12 Rahul139-stack

Thanks, now I see the problem. It's because Page Editor relies on HTML comments, but Vue removes them inside the rendered component. According to documentation this should help. After the edition, the DOM is changed and it doesn't display well, but comments required by Page Editor are available. It's why Drag & Drop is available.

paweljozwicki avatar Dec 15 '22 14:12 paweljozwicki