react-component / react-component/tooltip

dynamic updating the align prop doesn't update the tooltip alignment

Open
#207 0 comments 3 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.