Issue #3295💬 AnsweredOpened March 1, 2021by marcepoblet0 reactions

BUG (v0.16.41): Button component with draggable property is not working properly

Quick answerby artf

I guess you're doing something wrong, how do you create those components and their properties?? You shouldn't even see those attributes in the inspector.

Read full answer below ↓

Question

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 the property data-gjs-draggable in false, this button not should be dragged in the canvas. Describe the bug detailed StepsSet a button component with draggable property in falseDrag the button inside other componentsthe button is dragged What is the current behavior? StepsSet a button component with draggable property in falseDrag the button inside other componentsthe button not should be dragged Are you able to attach screenshots, screencasts or a live d...

Answers (4)

artfMarch 4, 2021

I guess you're doing something wrong, how do you create those components and their properties?? You shouldn't even see those attributes in the inspector.

marcepobletMarch 4, 2021

@artf In our codes we have not changed anything. The only difference is that we update the GrapesJs version. Before I had version v0.16.18 and it worked correctly, but now we update GrapesJs to v0.16.41 and it doesn't work for buttons.

marcepobletMarch 4, 2021

we set the properties with this: editor.getSelected().attributes.attributes["data-gjs-editable"] = 'false' editor.getSelected().attributes.attributes["data-gjs-copyable"] = 'false' editor.getSelected().attributes.attributes["data-gjs-droppable"] = 'false' editor.getSelected().attributes.attributes[...

GJSBlockMay 17, 2026

Thanks for reporting this, @marcepoblet. The issue with BUG (v0.16.41): Button component with draggable property is not working properly appears to be a race condition or state management timing problem. This typically happens when component lifecycle events and DOM modifications overlap, creating...

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.