@zohodesk/components 1.3.4 → 1.3.5

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/README.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  Dot UI is a customizable React component library built to deliver a clean, accessible, and developer-friendly UI experience. It offers a growing set of reusable components designed to align with modern design systems and streamline application development across projects.
4
4
 
5
+ # 1.3.5
6
+
7
+ - **AppContainer** - Memory leak issue resolved.
5
8
 
6
9
  # 1.3.4
7
10
 
@@ -81,12 +81,13 @@ export default class AppContainer extends React.Component {
81
81
 
82
82
  if (this.containerElement && needTooltip) {
83
83
  this.containerElement.removeEventListener('mouseover', this.handleOver, false);
84
- this.containerElement.addEventListener('mouseout', this.removeTimeout, false);
84
+ this.containerElement.removeEventListener('mouseout', this.removeTimeout, false);
85
85
  this.tooltipRef.unObserveElement();
86
- setLibraryConfig({
87
- getTooltipContainer: () => null
88
- });
89
86
  }
87
+
88
+ setLibraryConfig({
89
+ getTooltipContainer: () => null
90
+ });
90
91
  }
91
92
 
92
93
  render() {
@@ -148,14 +148,15 @@ var AppContainer = /*#__PURE__*/function (_React$Component) {
148
148
 
149
149
  if (this.containerElement && needTooltip) {
150
150
  this.containerElement.removeEventListener('mouseover', this.handleOver, false);
151
- this.containerElement.addEventListener('mouseout', this.removeTimeout, false);
151
+ this.containerElement.removeEventListener('mouseout', this.removeTimeout, false);
152
152
  this.tooltipRef.unObserveElement();
153
- (0, _Config.setLibraryConfig)({
154
- getTooltipContainer: function getTooltipContainer() {
155
- return null;
156
- }
157
- });
158
153
  }
154
+
155
+ (0, _Config.setLibraryConfig)({
156
+ getTooltipContainer: function getTooltipContainer() {
157
+ return null;
158
+ }
159
+ });
159
160
  }
160
161
  }, {
161
162
  key: "render",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/components",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "main": "es/index.js",
5
5
  "module": "es/index.js",
6
6
  "private": false,