Issue #2374Opened November 4, 2019by MartinPutz0 reactions

[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:

  1. Drag element by clicking on the component(or the toolbar icon)
  2. After the components is 'dropped' the style should be updated with the new position

Current behaviour:

  1. You drag the component somewhere else
  2. 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:

  1. Open the demo with dragmode
  2. Have a set x and y values(for example 0px and 0px)
  3. Drag the component and check the new x and y values

GrapesJS Version:0.15.8

Answers (3)

artfNovember 7, 20190 reactions

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

For x/y you mean left/top?

MartinPutzNovember 7, 20190 reactions

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

artfNovember 7, 20190 reactions

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

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.