-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Absolute mode, component's style missing when dragged into canvas #2359
Comments
Hi @sheldonwr this bug you are referring to is not reproducible in my side, here i tried your type definition on the demo and it is working, please check the below code and see what is missing in your side:
the issue i observed with this component was that when i move it around, the component stops rendering children and freeze with no respond to any interaction. this might be a bug by specifying component level drag mode instead of global. @artf |
Ok, actually a weird thing happens when a component has |
@artf yes! this is not happening if i remove |
In my custom component script is not there but still I have the issue. |
Hi guys, I'm working with grapesjs which version is '0.15.8', and in 'absolute' mode when I drag a block into canvas, I find the styles of component are missing.
Define component as following:
And I found the code in Droppable here: /utils/Droppable.js@L78
the component's styles are replaced.
Should 'addStyle' be used here instead of 'setStyle'?
The text was updated successfully, but these errors were encountered: