@apia/table 3.0.28 → 3.0.31

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/dist/index.js CHANGED
@@ -1192,7 +1192,7 @@ const NoMemoHeaderCell = ({
1192
1192
  const column = columns[columnIndex];
1193
1193
  const additionalInfoColumns = columns.filter((c) => c.showAsAdditional);
1194
1194
  const storedWidth = persistentStorage[widthStorageName]?.[actualName]?.[column.name];
1195
- const [width, setWidth] = React.useState(storedWidth ?? 200);
1195
+ const [width, setWidth] = React.useState(storedWidth ?? column.width ?? 200);
1196
1196
  const [isResize, setIsResize] = React.useState(storedWidth !== void 0);
1197
1197
  React.useEffect(() => {
1198
1198
  return void thWidthEmitter.on("resize", (ev) => {