react-component / react-component/tooltip
when set adjustY: false and the trigger node has no enough space, page stop responding
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 944
- Forks
- 199
- Avg merge
- 19h 1m
- Merged PRs (30d)
- 3
Description
The tooltips props is:
align={{
points: ['tl', 'bl'],
overflow: {adjustX: true, adjustY: false},
}}
onPopupAlign={(dom, al) => {
dom.scrollIntoView(false);
}}
When i scroll page let the trigger node near the bottom of the browser, and the trigger node is the last element of the page, then i click the trigger node want the tooltips show up, but the page stop responding.
I doubt it's happened because there is no enough space to show the tooltips, help please.
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
Reproduce the issue with align points ['tl', 'bl'], overflow adjustX true and adjustY false, and the onPopupAlign scrollIntoView(false) callback while the trigger is the last element near the viewport bottom. Start from the tooltip alignment and popup-alignment entry points; done means opening the tooltip no longer makes the page unresponsive when space is insufficient.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100