wrapper.set({ draggable: false }); not working in 0.15.5
Question
am trying to prevent the user to drag/drop the component on editor by setting draggable: false
i.e wrapper.set({ draggable: false });
but this is not responding now, actually it was working old version 0.14.62
Answers (1)
@ramusesan
- wrapper is not draggable by default (I'm able to update it anyway)
- if you're talking about the update on other components, I can run
editor.getSelected().set({ draggable: false })without any issue, the component becomes immediately not draggable
please provide a live demo example in case it's not true on your side
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2274
[QUESTION] How to load children of a readonly component?
I'm trying to mount a readonly component (draggable, droppable etc all set to false) and allow the user to edit child components inside. Fo...
Issue #1907
[QUESTION]: Drag and drop external html to editor ?
I have created a component which is heading and a block element for it. I have set the draggable property to be section html element. If I...
Issue #3009
BUG: Restricting Drop on Wrapper Component
Version: 0.16.22 Are you able to reproduce the bug from the demo? [ ] Yes [ X] No - requires editing js. What is the expected behavior? wra...
Issue #4083
BUG: Set root does not work
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Safari 15.0Reproducible demo link https://js...
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.