@patternfly/react-core 4.236.5 → 4.236.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-core",
3
- "version": "4.236.5",
3
+ "version": "4.236.6",
4
4
  "description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -44,9 +44,9 @@
44
44
  "generate": "node scripts/copyStyles.js"
45
45
  },
46
46
  "dependencies": {
47
- "@patternfly/react-icons": "^4.87.5",
48
- "@patternfly/react-styles": "^4.86.5",
49
- "@patternfly/react-tokens": "^4.88.5",
47
+ "@patternfly/react-icons": "^4.87.6",
48
+ "@patternfly/react-styles": "^4.86.6",
49
+ "@patternfly/react-tokens": "^4.88.6",
50
50
  "focus-trap": "6.9.2",
51
51
  "react-dropzone": "9.0.0",
52
52
  "tippy.js": "5.1.2",
@@ -70,5 +70,5 @@
70
70
  "react": "^16.8.0 || ^17.0.0",
71
71
  "react-dom": "^16.8.0 || ^17.0.0"
72
72
  },
73
- "gitHead": "910d0ce39921d2f89298f0fca3694ea6dc141b63"
73
+ "gitHead": "93b27d3315b0cb48b257beee955780016df60719"
74
74
  }
@@ -197,8 +197,17 @@ export class Page extends React.Component<PageProps, PageState> {
197
197
  if (mobileView !== this.state.mobileView) {
198
198
  this.setState({ mobileView });
199
199
  }
200
- this.pageRef.current &&
201
- this.setState({ width: this.pageRef.current.clientWidth, height: this.pageRef.current.clientHeight });
200
+ if (this.pageRef?.current) {
201
+ const currentWidth = this.pageRef.current.clientWidth;
202
+ const currentHeight = this.pageRef.current.clientHeight;
203
+
204
+ if (this.state.width !== currentWidth) {
205
+ this.setState({ width: currentWidth });
206
+ }
207
+ if (this.state.height !== currentHeight) {
208
+ this.setState({ height: currentHeight });
209
+ }
210
+ }
202
211
  };
203
212
 
204
213
  handleResize = debounce(this.resize, 250);