BUG: paste command does not respect draggable/droppable properties
Question
GrapesJS version
- I confirm to use the latest version of GrapesJS
What browser are you using?
Chrome Version 98.0.4758.80 (Official Build) (arm64)
Reproducible demo link
https://grapesjs.com/demo.html
Describe the bug
How to reproduce the bug?
- Add a "Tabs" block
- Copy a tab from the added component
- Paste the tab anywhere outside the component
What is the expected behavior? Copied tab should not get pasted outside the "Tabs" component. Copied components should not be pasted anywhere they can't be dragged/dropped to.
What is the current behavior? Copied tab can be pasted anywhere. Draggable/Droppable property of copied components is not respected when pasting.
Should be fixed in src/commands/view/PasteComponent.js
Code of Conduct
- I agree to follow this project's Code of Conduct
Answers (0)
No answers yet.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #4401
BUG: resizer does not work with touch - draggable attribute not set on handlers
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Version 102.0.5005.115 (Official Bu...
Issue #4094
BUG: When drag and drop block into editor in Chrome, not able to drag and drop block
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Version 97.0.4692.71 (Official Build) (64-...
Issue #4256
BUG: touch drag-and-drop does not work
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Version 98.0.4758.80 (Official Buil...
Issue #4752
BUG: Component with pointer-events: 'all' (except wrapper) or editable component are draggable & droppable to itself.
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome 107.0.5304.121 (Official Build) (arm6...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.