Wrapper.set({ draggable: false }); not working in 0.15.5
@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 yo...
Read full answer below ↓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 #4083
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...
Issue #3626
How to set src of video tag at dynamic?
Hi @artf , Hi I have drag and drop video tag and button from blockmanager, On Clicking the button , I need to change the url to src. But no...
Issue #3295
BUG (v0.16.41): Button component with draggable property is not working properly
Version: v0.16.41 Are you able to reproduce the bug from the demo? [ ] Yes [ ] No What is the expected behavior? When we have a button with...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.
Browse premium plugins →Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.