baseui 0.0.0-next-73dd693 → 0.0.0-next-2cbc1fd

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.
package/es/layer/layer.js CHANGED
@@ -94,6 +94,14 @@ class LayerComponent extends React.Component {
94
94
  if (host && host !== prevProps.host && prevProps.host === null) {
95
95
  this.addContainer(host);
96
96
  }
97
+
98
+ if (prevProps.isHoverLayer != this.props.isHoverLayer) {
99
+ if (this.props.isHoverLayer) {
100
+ this.context.removeDocClickHandler(this.onDocumentClick);
101
+ } else {
102
+ this.context.addDocClickHandler(this.onDocumentClick);
103
+ }
104
+ }
97
105
  }
98
106
 
99
107
  componentWillUnmount() {
@@ -132,6 +132,14 @@ var LayerComponent = /*#__PURE__*/function (_React$Component) {
132
132
  if (host && host !== prevProps.host && prevProps.host === null) {
133
133
  this.addContainer(host);
134
134
  }
135
+
136
+ if (prevProps.isHoverLayer != this.props.isHoverLayer) {
137
+ if (this.props.isHoverLayer) {
138
+ this.context.removeDocClickHandler(this.onDocumentClick);
139
+ } else {
140
+ this.context.addDocClickHandler(this.onDocumentClick);
141
+ }
142
+ }
135
143
  }
136
144
  }, {
137
145
  key: "componentWillUnmount",
package/layer/layer.js CHANGED
@@ -141,6 +141,14 @@ var LayerComponent = /*#__PURE__*/function (_React$Component) {
141
141
  if (host && host !== prevProps.host && prevProps.host === null) {
142
142
  this.addContainer(host);
143
143
  }
144
+
145
+ if (prevProps.isHoverLayer != this.props.isHoverLayer) {
146
+ if (this.props.isHoverLayer) {
147
+ this.context.removeDocClickHandler(this.onDocumentClick);
148
+ } else {
149
+ this.context.addDocClickHandler(this.onDocumentClick);
150
+ }
151
+ }
144
152
  }
145
153
  }, {
146
154
  key: "componentWillUnmount",
@@ -61,9 +61,18 @@ class LayerComponent extends React.Component<
61
61
  if (mountNode) {
62
62
  return;
63
63
  }
64
+
64
65
  if (host && host !== prevProps.host && prevProps.host === null) {
65
66
  this.addContainer(host);
66
67
  }
68
+
69
+ if (prevProps.isHoverLayer != this.props.isHoverLayer) {
70
+ if (this.props.isHoverLayer) {
71
+ this.context.removeDocClickHandler(this.onDocumentClick);
72
+ } else {
73
+ this.context.addDocClickHandler(this.onDocumentClick);
74
+ }
75
+ }
67
76
  }
68
77
 
69
78
  componentWillUnmount() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baseui",
3
- "version": "0.0.0-next-73dd693",
3
+ "version": "0.0.0-next-2cbc1fd",
4
4
  "description": "A React Component library implementing the Base design language",
5
5
  "keywords": [
6
6
  "react",