@gravity-ui/dashkit 6.2.0 → 6.2.1

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.
@@ -71,6 +71,8 @@ class OverlayControls extends react_1.default.Component {
71
71
  },
72
72
  };
73
73
  localStorage.setItem(constants_1.COPIED_WIDGET_STORE_KEY, JSON.stringify(options));
74
+ // https://stackoverflow.com/questions/35865481/storage-event-not-firing
75
+ window.dispatchEvent(new Event('storage'));
74
76
  };
75
77
  this.onEditItem = () => {
76
78
  this.context.editItem(this.props.configItem);
@@ -68,6 +68,8 @@ class OverlayControls extends React.Component {
68
68
  },
69
69
  };
70
70
  localStorage.setItem(COPIED_WIDGET_STORE_KEY, JSON.stringify(options));
71
+ // https://stackoverflow.com/questions/35865481/storage-event-not-firing
72
+ window.dispatchEvent(new Event('storage'));
71
73
  };
72
74
  this.onEditItem = () => {
73
75
  this.context.editItem(this.props.configItem);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/dashkit",
3
- "version": "6.2.0",
3
+ "version": "6.2.1",
4
4
  "description": "Library for rendering dashboard grid layout",
5
5
  "license": "MIT",
6
6
  "repository": {