react-component / react-component/tabs
I did not know the reason when I change the chrome mode to mobile, always appear errors below.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 572
- Forks
- 241
- Avg merge
- 4d 18h
- Merged PRs (30d)
- 4
Description
Uncaught TypeError: Cannot read property 'offsetWidth' of undefined
at Object.getOffsetWH (ScrollableTabBarMixin.js:95)
at Object.setNextPrev (ScrollableTabBarMixin.js:54)
at ScrollableTabBarMixin.js:28
at invokeFunc (index.js:160)
at trailingEdge (index.js:207)
at timerExpired (index.js:195)
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.
Research direction
Start by reproducing the mobile-mode error in Chrome, then inspect ScrollableTabBarMixin.js at getOffsetWH (line 95), setNextPrev (line 54), and the caller at line 28. Trace why the element used for offsetWidth is undefined and verify that switching to mobile mode no longer produces the reported TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100