react-component / react-component/tooltip

afterVisibleChange can be only executed once

Open
#179 0 comments 0 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

afterVisibleChange will be executed once only when the visible prop changed for the first time (tooltip or popover content will be rendered here).
here is a simple demo: https://codesandbox.io/s/qkxwlrvx9q

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 running the linked CodeSandbox demo and reproducing the behavior with controlled visible changes. Trace the tooltip's afterVisibleChange handling and identify why it runs only on the first change. Done means the callback runs whenever the visible prop changes as expected, with the demo behavior covered by an appropriate regression check.

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.