@limetech/lime-elements 37.65.1 → 37.65.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [37.65.2](https://github.com/Lundalogik/lime-elements/compare/v37.65.1...v37.65.2) (2024-11-05)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+
7
+ * **form:** prevent feedback loop in ResizeObserver callback ([833e899](https://github.com/Lundalogik/lime-elements/commit/833e899984e76943b25f714ff2830d3609ac5546))
8
+ * **table:** prevent feedback loop in ResizeObserver callback ([b38721f](https://github.com/Lundalogik/lime-elements/commit/b38721f4c45fc879957c59d1bb270f4335907227))
9
+
1
10
  ## [37.65.1](https://github.com/Lundalogik/lime-elements/compare/v37.65.0...v37.65.1) (2024-11-04)
2
11
 
3
12
 
@@ -23933,18 +23933,20 @@ class GridLayout extends react.Component {
23933
23933
  });
23934
23934
  }
23935
23935
  handleResize() {
23936
- const element = this.elementRef.current;
23937
- const width = element.getBoundingClientRect().width;
23938
- const maxColumns = Math.min(MAX_COLUMNS, Math.max(1, Math.floor(width / (MAX_COLUMN_WIDTH * PX_PER_REM))));
23939
- const columns = this.getColumnCount(maxColumns);
23940
- if (element.style.getPropertyValue(COLUMN_COUNT) !== `${columns}`) {
23941
- element.style.setProperty(COLUMN_COUNT, `${columns}`);
23942
- }
23943
- if (maxColumns !== this.state.maxColumns) {
23944
- this.setState({
23945
- maxColumns: maxColumns,
23946
- });
23947
- }
23936
+ requestAnimationFrame(() => {
23937
+ const element = this.elementRef.current;
23938
+ const width = element.getBoundingClientRect().width;
23939
+ const maxColumns = Math.min(MAX_COLUMNS, Math.max(1, Math.floor(width / (MAX_COLUMN_WIDTH * PX_PER_REM))));
23940
+ const columns = this.getColumnCount(maxColumns);
23941
+ if (element.style.getPropertyValue(COLUMN_COUNT) !== `${columns}`) {
23942
+ element.style.setProperty(COLUMN_COUNT, `${columns}`);
23943
+ }
23944
+ if (maxColumns !== this.state.maxColumns) {
23945
+ this.setState({
23946
+ maxColumns: maxColumns,
23947
+ });
23948
+ }
23949
+ });
23948
23950
  }
23949
23951
  render() {
23950
23952
  const classes = ['limel-form-layout--grid'];