@gravity-ui/dashkit 8.8.1-beta.1 → 8.8.1-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -57,11 +57,12 @@ class DragOverLayout extends react_grid_layout_1.default {
57
57
  }
58
58
  return;
59
59
  }
60
+ this._savedDragoutState = null;
60
61
  // parent onDrag will show new placeholder again
61
62
  this.parentOnDrag(i, x, y, sintEv);
62
63
  };
63
64
  this.extendedOnDragStop = (i, x, y, sintEv) => {
64
- // Restoring layout if item was dropped outside of the grid and wasn't captured
65
+ // Restoring layout if item was dropped outside of the grid
65
66
  if (this._savedDragoutState) {
66
67
  const savedLayout = this._savedDragoutState.layout;
67
68
  const l = react_grid_layout_1.utils.getLayoutItem(savedLayout, i);
@@ -53,11 +53,12 @@ class DragOverLayout extends ReactGridLayout {
53
53
  }
54
54
  return;
55
55
  }
56
+ this._savedDragoutState = null;
56
57
  // parent onDrag will show new placeholder again
57
58
  this.parentOnDrag(i, x, y, sintEv);
58
59
  };
59
60
  this.extendedOnDragStop = (i, x, y, sintEv) => {
60
- // Restoring layout if item was dropped outside of the grid and wasn't captured
61
+ // Restoring layout if item was dropped outside of the grid
61
62
  if (this._savedDragoutState) {
62
63
  const savedLayout = this._savedDragoutState.layout;
63
64
  const l = utils.getLayoutItem(savedLayout, i);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/dashkit",
3
- "version": "8.8.1-beta.1",
3
+ "version": "8.8.1-beta.2",
4
4
  "description": "Library for rendering dashboard grid layout",
5
5
  "license": "MIT",
6
6
  "repository": {