[BUG] Component style is not updated after the drag event in Dragmode('absolute')
Question
In the new dragmode the component's style is not updated after dragging the component.
Expected behaviour:
- Drag element by clicking on the component(or the toolbar icon)
- After the components is 'dropped' the style should be updated with the new position
Current behaviour:
- You drag the component somewhere else
- The x and y position (top,left) are the same as before the dragging
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:
- Open the demo with dragmode
- Have a set x and y values(for example 0px and 0px)
- Drag the component and check the new x and y values
GrapesJS Version:0.15.8
Answers (3)
Have a set x and y values(for example 0px and 0px)
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?
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2419
[BUG] Absolute dragmode does not work on touch devices
Absolute dragmode (with grapesjs touch plugin) does not work on touch devices. GrapesJS version:0.15.8 Expected behavior: The user should b...
Issue #2196
[Bug] Link element selection shows no toolbar
Steps to reproduce: add Text, select a word, click on Link icon in RTE panel, select a Link. Expected behaviour: when I select Link I expec...
Issue #1951
[QUESTIONS] change or add event on add component from block
is it possible ?, change the drag and drop event to on click when adding a new component, I want to add components by clicking the block th...
Issue #2904
BUG: dragging components in preview mode enables editor mode
We can reproduce the bug from the demo Current Behavior: Expected Behavior: We should not be able to drag/move components when in preview m...
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.