Issue #2374💬 AnsweredOpened November 4, 2019by MartinPutz0 reactions

Component style is not updated after the drag event in Dragmode('absolute')

Quick answerby artf

Have a set x and y values(for example 0px and 0px) For x/y you mean left/top?

Read full answer below ↓

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 elseThe 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 a...

Answers (3)

artfNovember 7, 2019

Have a set x and y values(for example 0px and 0px)

For x/y you mean left/top?

MartinPutzNovember 7, 2019

Yes, left and top should change and should be updated but they remain the same.

artfNovember 7, 2019

I see them changing only after reselecting the component, can you confirm?

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.