Skip to content

Commit

Permalink
fix: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
li-jia-nan committed Jan 10, 2025
1 parent 61ed10f commit a0804b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -527,9 +527,9 @@ function Table<RecordType extends DefaultRecordType>(
React.useEffect(() => {
if (!tailor || !useInternalHooks) {
if (scrollBodyRef.current instanceof Element) {
setScrollbarSize(getTargetScrollBarSize(scrollBodyRef.current)?.width);
setScrollbarSize(getTargetScrollBarSize(scrollBodyRef.current).width);

Check failure on line 530 in src/Table.tsx

View workflow job for this annotation

GitHub Actions / test / react component workflow

tests/Cell.spec.tsx > Table.Cell > shouldCellUpdate

TypeError: Cannot read properties of undefined (reading 'width') ❯ src/Table.tsx:530:70 ❯ commitHookEffectListMount node_modules/react-dom/cjs/react-dom.development.js:19731:26 ❯ commitPassiveHookEffects node_modules/react-dom/cjs/react-dom.development.js:19769:11 ❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:188:14 ❯ HTMLUnknownElement.callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30 ❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25 ❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3 ❯ HTMLUnknownElementImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9 ❯ HTMLUnknownElementImpl.dispatchEvent node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17 ❯ HTMLUnknownElement.dispatchEvent node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34

Check failure on line 530 in src/Table.tsx

View workflow job for this annotation

GitHub Actions / test / react component workflow

tests/Cell.spec.tsx > Table.Cell > shouldCellUpdate not block className

TypeError: Cannot read properties of undefined (reading 'width') ❯ src/Table.tsx:530:70 ❯ commitHookEffectListMount node_modules/react-dom/cjs/react-dom.development.js:19731:26 ❯ commitPassiveHookEffects node_modules/react-dom/cjs/react-dom.development.js:19769:11 ❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:188:14 ❯ HTMLUnknownElement.callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30 ❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25 ❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3 ❯ HTMLUnknownElementImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9 ❯ HTMLUnknownElementImpl.dispatchEvent node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17 ❯ HTMLUnknownElement.dispatchEvent node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34

Check failure on line 530 in src/Table.tsx

View workflow job for this annotation

GitHub Actions / test / react component workflow

tests/Cell.spec.tsx > Table.Cell > closure should work on render

TypeError: Cannot read properties of undefined (reading 'width') ❯ src/Table.tsx:530:70 ❯ commitHookEffectListMount node_modules/react-dom/cjs/react-dom.development.js:19731:26 ❯ commitPassiveHookEffects node_modules/react-dom/cjs/react-dom.development.js:19769:11 ❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:188:14 ❯ HTMLUnknownElement.callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30 ❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25 ❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3 ❯ HTMLUnknownElementImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9 ❯ HTMLUnknownElementImpl.dispatchEvent node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17 ❯ HTMLUnknownElement.dispatchEvent node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34

Check failure on line 530 in src/Table.tsx

View workflow job for this annotation

GitHub Actions / test / react component workflow

tests/Cell.spec.tsx > Table.Cell > onHeaderCell

TypeError: Cannot read properties of undefined (reading 'width') ❯ src/Table.tsx:530:70 ❯ commitHookEffectListMount node_modules/react-dom/cjs/react-dom.development.js:19731:26 ❯ commitPassiveHookEffects node_modules/react-dom/cjs/react-dom.development.js:19769:11 ❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:188:14 ❯ HTMLUnknownElement.callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30 ❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25 ❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3 ❯ HTMLUnknownElementImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9 ❯ HTMLUnknownElementImpl.dispatchEvent node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17 ❯ HTMLUnknownElement.dispatchEvent node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34

Check failure on line 530 in src/Table.tsx

View workflow job for this annotation

GitHub Actions / test / react component workflow

tests/Cell.spec.tsx > Table.Cell > style merge order

TypeError: Cannot read properties of undefined (reading 'width') ❯ src/Table.tsx:530:70 ❯ commitHookEffectListMount node_modules/react-dom/cjs/react-dom.development.js:19731:26 ❯ commitPassiveHookEffects node_modules/react-dom/cjs/react-dom.development.js:19769:11 ❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:188:14 ❯ HTMLUnknownElement.callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30 ❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25 ❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3 ❯ HTMLUnknownElementImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9 ❯ HTMLUnknownElementImpl.dispatchEvent node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17 ❯ HTMLUnknownElement.dispatchEvent node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34

Check failure on line 530 in src/Table.tsx

View workflow job for this annotation

GitHub Actions / test / react component workflow

tests/ColSpan.spec.jsx > Table.ColSpan > hover the tree table

TypeError: Cannot read properties of undefined (reading 'width') ❯ src/Table.tsx:530:70 ❯ commitHookEffectListMount node_modules/react-dom/cjs/react-dom.development.js:19731:26 ❯ commitPassiveHookEffects node_modules/react-dom/cjs/react-dom.development.js:19769:11 ❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:188:14 ❯ HTMLUnknownElement.callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30 ❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25 ❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3 ❯ HTMLUnknownElementImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9 ❯ HTMLUnknownElementImpl.dispatchEvent node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17 ❯ HTMLUnknownElement.dispatchEvent node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34

Check failure on line 530 in src/Table.tsx

View workflow job for this annotation

GitHub Actions / test / react component workflow

tests/Colgroup.spec.jsx > Table.ColGroup > internal props should render

TypeError: Cannot read properties of undefined (reading 'width') ❯ src/Table.tsx:530:70 ❯ commitHookEffectListMount node_modules/react-dom/cjs/react-dom.development.js:19731:26 ❯ commitPassiveHookEffects node_modules/react-dom/cjs/react-dom.development.js:19769:11 ❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:188:14 ❯ HTMLUnknownElement.callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30 ❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25 ❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3 ❯ HTMLUnknownElementImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9 ❯ HTMLUnknownElementImpl.dispatchEvent node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17 ❯ HTMLUnknownElement.dispatchEvent node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34

Check failure on line 530 in src/Table.tsx

View workflow job for this annotation

GitHub Actions / test / react component workflow

tests/Colgroup.spec.jsx > Table.ColGroup > correct key

TypeError: Cannot read properties of undefined (reading 'width') ❯ src/Table.tsx:530:70 ❯ commitHookEffectListMount node_modules/react-dom/cjs/react-dom.development.js:19731:26 ❯ commitPassiveHookEffects node_modules/react-dom/cjs/react-dom.development.js:19769:11 ❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:188:14 ❯ HTMLUnknownElement.callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30 ❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25 ❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3 ❯ HTMLUnknownElementImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9 ❯ HTMLUnknownElementImpl.dispatchEvent node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17 ❯ HTMLUnknownElement.dispatchEvent node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34

Check failure on line 530 in src/Table.tsx

View workflow job for this annotation

GitHub Actions / test / react component workflow

tests/Colgroup.spec.jsx > Table.ColGroup > minWidth should be worked

TypeError: Cannot read properties of undefined (reading 'width') ❯ src/Table.tsx:530:70 ❯ commitHookEffectListMount node_modules/react-dom/cjs/react-dom.development.js:19731:26 ❯ commitPassiveHookEffects node_modules/react-dom/cjs/react-dom.development.js:19769:11 ❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:188:14 ❯ HTMLUnknownElement.callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30 ❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25 ❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3 ❯ HTMLUnknownElementImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9 ❯ HTMLUnknownElementImpl.dispatchEvent node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17 ❯ HTMLUnknownElement.dispatchEvent node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34

Check failure on line 530 in src/Table.tsx

View workflow job for this annotation

GitHub Actions / test / react component workflow

tests/Colgroup.spec.jsx > Table.ColGroup > should not have minWidth when tableLayout is fixed

TypeError: Cannot read properties of undefined (reading 'width') ❯ src/Table.tsx:530:70 ❯ commitHookEffectListMount node_modules/react-dom/cjs/react-dom.development.js:19731:26 ❯ commitPassiveHookEffects node_modules/react-dom/cjs/react-dom.development.js:19769:11 ❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:188:14 ❯ HTMLUnknownElement.callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30 ❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25 ❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3 ❯ HTMLUnknownElementImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9 ❯ HTMLUnknownElementImpl.dispatchEvent node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17 ❯ HTMLUnknownElement.dispatchEvent node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34

Check failure on line 530 in src/Table.tsx

View workflow job for this annotation

GitHub Actions / test / react component workflow

tests/Cell.spec.tsx > Table.Cell > shouldCellUpdate

TypeError: Cannot read properties of undefined (reading 'width') ❯ src/Table.tsx:530:70 ❯ commitHookEffectListMount node_modules/react-dom/cjs/react-dom.development.js:19731:26 ❯ commitPassiveHookEffects node_modules/react-dom/cjs/react-dom.development.js:19769:11 ❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:188:14 ❯ HTMLUnknownElement.callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30 ❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25 ❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3 ❯ HTMLUnknownElementImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9 ❯ HTMLUnknownElementImpl.dispatchEvent node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17 ❯ HTMLUnknownElement.dispatchEvent node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34

Check failure on line 530 in src/Table.tsx

View workflow job for this annotation

GitHub Actions / test / react component workflow

tests/Cell.spec.tsx > Table.Cell > shouldCellUpdate not block className

TypeError: Cannot read properties of undefined (reading 'width') ❯ src/Table.tsx:530:70 ❯ commitHookEffectListMount node_modules/react-dom/cjs/react-dom.development.js:19731:26 ❯ commitPassiveHookEffects node_modules/react-dom/cjs/react-dom.development.js:19769:11 ❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:188:14 ❯ HTMLUnknownElement.callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30 ❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25 ❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3 ❯ HTMLUnknownElementImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9 ❯ HTMLUnknownElementImpl.dispatchEvent node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17 ❯ HTMLUnknownElement.dispatchEvent node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34

Check failure on line 530 in src/Table.tsx

View workflow job for this annotation

GitHub Actions / test / react component workflow

tests/Cell.spec.tsx > Table.Cell > closure should work on render

TypeError: Cannot read properties of undefined (reading 'width') ❯ src/Table.tsx:530:70 ❯ commitHookEffectListMount node_modules/react-dom/cjs/react-dom.development.js:19731:26 ❯ commitPassiveHookEffects node_modules/react-dom/cjs/react-dom.development.js:19769:11 ❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:188:14 ❯ HTMLUnknownElement.callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30 ❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25 ❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3 ❯ HTMLUnknownElementImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9 ❯ HTMLUnknownElementImpl.dispatchEvent node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17 ❯ HTMLUnknownElement.dispatchEvent node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34

Check failure on line 530 in src/Table.tsx

View workflow job for this annotation

GitHub Actions / test / react component workflow

tests/Cell.spec.tsx > Table.Cell > onHeaderCell

TypeError: Cannot read properties of undefined (reading 'width') ❯ src/Table.tsx:530:70 ❯ commitHookEffectListMount node_modules/react-dom/cjs/react-dom.development.js:19731:26 ❯ commitPassiveHookEffects node_modules/react-dom/cjs/react-dom.development.js:19769:11 ❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:188:14 ❯ HTMLUnknownElement.callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30 ❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25 ❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3 ❯ HTMLUnknownElementImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9 ❯ HTMLUnknownElementImpl.dispatchEvent node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17 ❯ HTMLUnknownElement.dispatchEvent node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34

Check failure on line 530 in src/Table.tsx

View workflow job for this annotation

GitHub Actions / test / react component workflow

tests/Cell.spec.tsx > Table.Cell > style merge order

TypeError: Cannot read properties of undefined (reading 'width') ❯ src/Table.tsx:530:70 ❯ commitHookEffectListMount node_modules/react-dom/cjs/react-dom.development.js:19731:26 ❯ commitPassiveHookEffects node_modules/react-dom/cjs/react-dom.development.js:19769:11 ❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:188:14 ❯ HTMLUnknownElement.callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30 ❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25 ❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3 ❯ HTMLUnknownElementImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9 ❯ HTMLUnknownElementImpl.dispatchEvent node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17 ❯ HTMLUnknownElement.dispatchEvent node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34

Check failure on line 530 in src/Table.tsx

View workflow job for this annotation

GitHub Actions / test / react component workflow

tests/ColSpan.spec.jsx > Table.ColSpan > hover the tree table

TypeError: Cannot read properties of undefined (reading 'width') ❯ src/Table.tsx:530:70 ❯ commitHookEffectListMount node_modules/react-dom/cjs/react-dom.development.js:19731:26 ❯ commitPassiveHookEffects node_modules/react-dom/cjs/react-dom.development.js:19769:11 ❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:188:14 ❯ HTMLUnknownElement.callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30 ❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25 ❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3 ❯ HTMLUnknownElementImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9 ❯ HTMLUnknownElementImpl.dispatchEvent node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17 ❯ HTMLUnknownElement.dispatchEvent node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34

Check failure on line 530 in src/Table.tsx

View workflow job for this annotation

GitHub Actions / test / react component workflow

tests/Colgroup.spec.jsx > Table.ColGroup > internal props should render

TypeError: Cannot read properties of undefined (reading 'width') ❯ src/Table.tsx:530:70 ❯ commitHookEffectListMount node_modules/react-dom/cjs/react-dom.development.js:19731:26 ❯ commitPassiveHookEffects node_modules/react-dom/cjs/react-dom.development.js:19769:11 ❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:188:14 ❯ HTMLUnknownElement.callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30 ❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25 ❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3 ❯ HTMLUnknownElementImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9 ❯ HTMLUnknownElementImpl.dispatchEvent node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17 ❯ HTMLUnknownElement.dispatchEvent node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34

Check failure on line 530 in src/Table.tsx

View workflow job for this annotation

GitHub Actions / test / react component workflow

tests/Colgroup.spec.jsx > Table.ColGroup > correct key

TypeError: Cannot read properties of undefined (reading 'width') ❯ src/Table.tsx:530:70 ❯ commitHookEffectListMount node_modules/react-dom/cjs/react-dom.development.js:19731:26 ❯ commitPassiveHookEffects node_modules/react-dom/cjs/react-dom.development.js:19769:11 ❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:188:14 ❯ HTMLUnknownElement.callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30 ❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25 ❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3 ❯ HTMLUnknownElementImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9 ❯ HTMLUnknownElementImpl.dispatchEvent node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17 ❯ HTMLUnknownElement.dispatchEvent node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34

Check failure on line 530 in src/Table.tsx

View workflow job for this annotation

GitHub Actions / test / react component workflow

tests/Colgroup.spec.jsx > Table.ColGroup > minWidth should be worked

TypeError: Cannot read properties of undefined (reading 'width') ❯ src/Table.tsx:530:70 ❯ commitHookEffectListMount node_modules/react-dom/cjs/react-dom.development.js:19731:26 ❯ commitPassiveHookEffects node_modules/react-dom/cjs/react-dom.development.js:19769:11 ❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:188:14 ❯ HTMLUnknownElement.callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30 ❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25 ❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3 ❯ HTMLUnknownElementImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9 ❯ HTMLUnknownElementImpl.dispatchEvent node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17 ❯ HTMLUnknownElement.dispatchEvent node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34

Check failure on line 530 in src/Table.tsx

View workflow job for this annotation

GitHub Actions / test / react component workflow

tests/Colgroup.spec.jsx > Table.ColGroup > should not have minWidth when tableLayout is fixed

TypeError: Cannot read properties of undefined (reading 'width') ❯ src/Table.tsx:530:70 ❯ commitHookEffectListMount node_modules/react-dom/cjs/react-dom.development.js:19731:26 ❯ commitPassiveHookEffects node_modules/react-dom/cjs/react-dom.development.js:19769:11 ❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:188:14 ❯ HTMLUnknownElement.callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30 ❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25 ❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3 ❯ HTMLUnknownElementImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9 ❯ HTMLUnknownElementImpl.dispatchEvent node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17 ❯ HTMLUnknownElement.dispatchEvent node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34
} else {
setScrollbarSize(getTargetScrollBarSize(scrollBodyContainerRef.current)?.width);
setScrollbarSize(getTargetScrollBarSize(scrollBodyContainerRef.current).width);
}
}
setSupportSticky(isStyleSupport('position', 'sticky'));
Expand Down

0 comments on commit a0804b5

Please sign in to comment.