-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[BUG] Component style is not updated after the drag event in Dragmode('absolute') #2374
Comments
For x/y you mean left/top? |
Yes, left and top should change and should be updated but they remain the same. |
I see them changing only after reselecting the component, can you confirm? |
Yes, after reselecting the component, it does update them properly. |
Thanks, probably I've disabled some event for better performances but I'll look what I can do |
Hi @artf , Created JSfiddle to replicate the issues |
Quick workaround:
It only updates after you drop the component but it is enough in my case. |
@MartinPutz : Thank you, but it's not working |
@sdrebel I was facing the same issue. After some debugging, I found the issue is in https://github.com/artf/grapesjs/blob/dev/src/utils/Droppable.js#L78 custom defined style is overwritten by absolute styles. I fixed that in my own fork and it's working now. |
Hi @xiyangliu, Great!! Similar hack I found and doing it in Component render method.
But I'm waiting these issues to be fixed in the package itself as we are importing in React and have multiple instances. |
Do we have any fix for this issue? |
I also need a fix for this issue . |
Do we have further fix for this issue? |
This will be fixed in the next release |
In the new dragmode the component's style is not updated after dragging the component.
Expected behaviour:
Current behaviour:
There is an exception: if the stylemanager panel is not open yet and then you drag the component then it will be updated correctly(only for the first time since then the panel is open)
The issue is reproducable in the demo as well.
https://jsfiddle.net/yt0wz29p/
Steps to reproduce:
GrapesJS Version:0.15.8
The text was updated successfully, but these errors were encountered: