react-component / react-component/trigger
Application crashing bug: _this.alignRef.current.forceAlign() called when _this.alignRef.current is null
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 391
- Forks
- 245
- PR merge metrics
- No merged PRs in 30d
Description
I'm using the rc-tooltip package which has rc-trigger as a dependency. On certain occasions, and I don't know why, my application totally crashes because on line 99 of Popup.js, _this.alignRef.current.forceAlign() is called when _this.alignRef.current is null. I've hacked in an conditional check before making the call for now.
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 at Popup.js line 99, where forceAlign() is called on _this.alignRef.current, and inspect how that ref can be null. Reproduce the reported crash if possible and verify that the alignment path no longer crashes when the ref is unavailable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100