TypeError: Cannot read property 'offsetWidth' of null
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- react, typescript
- Domain
- frontend
Research direction
Start with rc-tabs/es/TabNavList/index.js around lines 309-313 and hooks/useRaf.js around lines 16, 39-40, then reproduce using an antd tabs setup. Done means the reported offsetWidth null error no longer occurs in the reported scenario; the issue provides no test or reproduction repository to run.
Written by the indexing model from the issue text.
Description
Using antd tabs in one of my projects and getting this error in rc-tabs
I did see issue #300 so I updated antd and rc-tabs, but the error is still happening.
Unhandled Runtime Error
TypeError: Cannot read property 'offsetWidth' of null
Call Stack
eval
node_modules/rc-tabs/es/TabNavList/index.js (313:0)
Array.forEach
<anonymous>
eval
node_modules/rc-tabs/es/TabNavList/index.js (309:0)
eval
node_modules/rc-tabs/es/hooks/useRaf.js (40:0)
Array.forEach
<anonymous>
eval
node_modules/rc-tabs/es/hooks/useRaf.js (39:0)
eval
node_modules/rc-tabs/es/hooks/useRaf.js (16:0)
- Dominant language
- TypeScript
- Stars
- 572
- Forks
- 241
- Avg merge
- 4d 18h
- Merged PRs (30d)
- 4
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from react-component/tabs
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
react-component/tabs#865 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
react-component/tabs#809 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 64/100
react-component/tabs#1013 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
react-component/tabs#777 · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
react-component/tabs#726 ·
All issues in react-component/tabs
Similar issues
-
blocklist removal
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
MetaMask/eth-phishing-detect#296544 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
pastelsky/bundlephobia#1122 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
category/development priority/P2 scope/file-operations scope/testing type/enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Enatega Customer and Rider app: Add-ons price is not visible to customer after order is placed. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100