[BUG] Droppable query selector [data-gjs-type="my-component-type"] no longer working
Question
Hi, since the latest version, I noticed that when I use the droppable query selector using [data-gjs-type="my-component-type"] no longer seems to work.
I have added two codesandbox demos to show you the issue. I am not able to figure out what changed.
Hope it helps, thanks!
You're submitting a BUG
- Are you using the latest release (older versions are NOT supported)? Yes
- Are you facing the bug with your local copy of GrapesJS or with the current demo? Latest version available 0.14.61.
- What is the expected behavior? Components defined by type in droppable selector, would detect and allow only specified types to be dropped.
- What happens instead? Component is no longer recognized and can't be dropped into said component.
- If you're able to reproduce the bug indicate all the necessary steps
1. Create two components and blocks.
- One component has the droppable attribute selector, e.g.:
droppable: ['[data-gjs-type="test-drop"]']and the other would be the component we want to drag and drop inside the first one.
- One component has the droppable attribute selector, e.g.:
- Attach screenshots (using KAP/LICEcap), screencasts or live demo 1. Version that works with the previous release - 0.14.57 2. Version that doesn't work with the latest release - 0.14.61
To test the issue, just drag and drop the TEST block in the canvas,
and then try to drag and drop the TEST DROP block onto the TEST component.
Answers (1)
Ok seems like the regression was introduced by this change: https://github.com/artf/grapesjs/commit/702ba828b13bae4b64bfd7bc79f23d8909d757f4#diff-6aa74cf54855daa6ca63a5d1e8b77c44R358
I'll fix it in the next release. Thanks for the report
Related Questions and Answers
Continue research with similar issue discussions.
Issue #4116
BUG: Flex Property not working in style manager
GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Version 1.34.81 Chromium: 97.0.4692.99 (Of...
Issue #1513
[Bug] Duplicate CSS written under media queries
Hey @artf Great work on the project! I noticed something and I am able to reproduce it on my local machine too. Any css written under media...
Issue #2068
GrapesJs gradient plugin not working anymore
Hello GrapesJs team After updating the grapesjs version form 14.0.59 i noticed the gradient plugin stopped to work, i also checked the grad...
Issue #4998
BUG: showOffsetsSelected not working
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chome v111 Reproducible demo link https://...
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.