Issue #4752πŸ’¬ AnsweredOpened Nov 28, 2022by FaisalShaikhHA0 reactions

Component with pointer-events: 'all' (except wrapper) or editable component are draggable & droppable to itself.

Quick answerby artf

There was an issue with the demo itself which now it's fixed (added draggable: false to the wrapper component)

Read full answer below ↓

Question

GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome 107.0.5304.121 (Official Build) (arm64)Reproducible demo link https://jsfiddle.net/artur_arseniev/aku70f5wDescribe the bug How to reproduce the bug?Try to drag and drop the editable component or component having a pointer-events: all CSS in itself. It will disappear. As this operation performs an infinite loop and returns an error on the console Uncaught RangeError: Maximum call stack size exceeded. Even after setting draggable false to the editable component, it is draggable. What is the exp...

Answers (3)

artfβ€’ Dec 4, 2022

There was an issue with the demo itself which now it's fixed (added draggable: false to the wrapper component)

FaisalShaikhHAβ€’ Dec 12, 2022

Patch for getCss to return always the content from the editable component is not working, can you please help me to solve this @artf The below code (present in the reproducible demo link) always returns the whole canvas or wrapper CSS string.

GJSBlockβ€’ May 17, 2026

Thanks for reporting this, @FaisalShaikhHA. Great question about Component with pointer-events: 'all' (except wrapper) or editable component are draggable & droppable to itself.. The recommended approach with StyleManager is to use the event-driven API. Start here: Check the GrapesJS documentation...

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins β†’
Premium option

Premium plugins ship with support, regular updates, and production-ready features β€” save days of integration work.

Browse premium plugins β†’

Related tutorials

In-depth guides on the same topic.

All tutorials β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.