react-component / react-component/tooltip
dynamic updating the align prop doesn't update the tooltip alignment
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 944
- Forks
- 199
- Avg merge
- 19h 1m
- Merged PRs (30d)
- 3
Description
im trying to make the tooltip alignment dynamic. but when the component parent passing different targetOffset, it stays with the initial values.
im building a calendar. when clicking any date the tooltip opens next to it with the events list. when event is clicked, the expended event should open instead of the eventsList (inside the tooltip). because the size of the expended event is different from the events list i want to adjust the targetOffset based on the new height. is there anyway to force update on the tooltip component so it will receive the new values for align ?
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 calendar-like case where the tooltip content changes and the parent passes a new targetOffset or align value. Trace how controlled tooltip props are updated after the initial render; done means the tooltip alignment reflects the new values when the expanded event replaces the events list.
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