publ-echo-test 0.0.180 → 0.0.182

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.
@@ -30,7 +30,8 @@ var OutsideClickHandler = function (_a) {
30
30
  var childElement = wrapperRef.current.children[0];
31
31
  // Get computed style of the child element
32
32
  var computedStyle = window.getComputedStyle(childElement);
33
- if (childElement.dataset['group-block-id'] !== 'BULK') {
33
+ if (childElement.dataset['groupBlockId'] !== 'BULK') {
34
+ console.log(childElement);
34
35
  return;
35
36
  }
36
37
  setChildDimensions({
@@ -39,6 +40,13 @@ var OutsideClickHandler = function (_a) {
39
40
  height: computedStyle.height
40
41
  });
41
42
  }
43
+ return function () {
44
+ setChildDimensions({
45
+ transform: '',
46
+ width: '0',
47
+ height: '0'
48
+ });
49
+ };
42
50
  }, [children, wrapperRef.current]);
43
51
  // Parse dimensions to numbers for calculations
44
52
  var width = parseFloat(childDimensions.width) || 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo-test",
3
- "version": "0.0.180",
3
+ "version": "0.0.182",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",