BUG (v0.16.41): Button component with draggable property is not working properly
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 Steps
- Set a button component with draggable property in false
- Drag the button inside other components
- the button is dragged
What is the current behavior? Steps
- Set a button component with draggable property in false
- Drag the button inside other components
- the button not should be dragged
Are you able to attach screenshots, screencasts or a live demo?
[ ] Yes (attached a video )
Answers (3)
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.
@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.
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["data-gjs-draggable"] = 'false'
editor.getSelected().attributes.attributes["data-gjs-resizable"] = 'false'
editor.getSelected().attributes.attributes["data-gjs-stylable"] = 'false'
this way was working perfectly for v0.16.18
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3134
BUG: Canvas scroll to top of the page when I try to drag an element from the last sections
Version: 0.16.27 Are you able to reproduce the bug from the demo? [ X] Yes [ ] No What is the expected behavior? When a try to drag a compo...
Issue #3305
BUG: (v0.16.41) Button not set as active on click
Version: v0.16.41 Are you able to reproduce the bug from the demo? [ ] Yes [x] No What is the expected behavior? When I click on a button,...
Issue #3310
BUG: Tablet and mobile view not resizing
Version: The one in the demo Are you able to reproduce the bug from the demo? [X] Yes [ ] No What is the expected behavior? Mobile and tabl...
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...
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.