baseui 0.0.0-alpha-0ccfc47 → 0.0.0-alpha-cb60490
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/data-table/data-table.js +0 -1
- package/data-table/data-table.js.flow +0 -1
- package/data-table/measure-column-widths.js +4 -3
- package/data-table/measure-column-widths.js.flow +3 -3
- package/es/data-table/data-table.js +0 -1
- package/es/data-table/measure-column-widths.js +4 -3
- package/esm/data-table/data-table.js +0 -1
- package/esm/data-table/measure-column-widths.js +4 -3
- package/package.json +1 -1
package/data-table/data-table.js
CHANGED
|
@@ -609,7 +609,6 @@ function DataTable(_ref2) {
|
|
|
609
609
|
}
|
|
610
610
|
}, [gridRef]);
|
|
611
611
|
var handleWidthsChange = React.useCallback(function (nextWidths) {
|
|
612
|
-
console.log('next widths', nextWidths);
|
|
613
612
|
setMeasuredWidths(nextWidths);
|
|
614
613
|
resetAfterColumnIndex(0);
|
|
615
614
|
}, [setMeasuredWidths, resetAfterColumnIndex]);
|
|
@@ -157,9 +157,10 @@ function MeasureColumnWidths(_ref2) {
|
|
|
157
157
|
overflow: 'hidden',
|
|
158
158
|
height: 0
|
|
159
159
|
}); // Remove the measurement nodes after we are done updating our column width
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
160
|
+
|
|
161
|
+
if (widthMap.size === columns.length) {
|
|
162
|
+
return null;
|
|
163
|
+
}
|
|
163
164
|
|
|
164
165
|
return (
|
|
165
166
|
/*#__PURE__*/
|
|
@@ -167,9 +167,9 @@ export default function MeasureColumnWidths({
|
|
|
167
167
|
});
|
|
168
168
|
|
|
169
169
|
// Remove the measurement nodes after we are done updating our column width
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
if (widthMap.size === columns.length) {
|
|
171
|
+
return null;
|
|
172
|
+
}
|
|
173
173
|
|
|
174
174
|
return (
|
|
175
175
|
// eslint-disable-next-line jsx-a11y/role-supports-aria-props
|
|
@@ -490,7 +490,6 @@ export function DataTable({
|
|
|
490
490
|
}
|
|
491
491
|
}, [gridRef]);
|
|
492
492
|
const handleWidthsChange = React.useCallback(nextWidths => {
|
|
493
|
-
console.log('next widths', nextWidths);
|
|
494
493
|
setMeasuredWidths(nextWidths);
|
|
495
494
|
resetAfterColumnIndex(0);
|
|
496
495
|
}, [setMeasuredWidths, resetAfterColumnIndex]);
|
|
@@ -125,9 +125,10 @@ export default function MeasureColumnWidths({
|
|
|
125
125
|
overflow: 'hidden',
|
|
126
126
|
height: 0
|
|
127
127
|
}); // Remove the measurement nodes after we are done updating our column width
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
|
|
129
|
+
if (widthMap.size === columns.length) {
|
|
130
|
+
return null;
|
|
131
|
+
}
|
|
131
132
|
|
|
132
133
|
return (
|
|
133
134
|
/*#__PURE__*/
|
|
@@ -590,7 +590,6 @@ export function DataTable(_ref2) {
|
|
|
590
590
|
}
|
|
591
591
|
}, [gridRef]);
|
|
592
592
|
var handleWidthsChange = React.useCallback(function (nextWidths) {
|
|
593
|
-
console.log('next widths', nextWidths);
|
|
594
593
|
setMeasuredWidths(nextWidths);
|
|
595
594
|
resetAfterColumnIndex(0);
|
|
596
595
|
}, [setMeasuredWidths, resetAfterColumnIndex]);
|
|
@@ -146,9 +146,10 @@ export default function MeasureColumnWidths(_ref2) {
|
|
|
146
146
|
overflow: 'hidden',
|
|
147
147
|
height: 0
|
|
148
148
|
}); // Remove the measurement nodes after we are done updating our column width
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
|
|
150
|
+
if (widthMap.size === columns.length) {
|
|
151
|
+
return null;
|
|
152
|
+
}
|
|
152
153
|
|
|
153
154
|
return (
|
|
154
155
|
/*#__PURE__*/
|