react-component / react-component/tooltip

getTooltipContainer虽然能够指定父元素,但是不受父元素控制

Open
#142 0 comments 1 reaction 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

**** If you don't understand Chinese, please leave a message.****

The title is getTooltipContainer can specify a parent element but is not controlled by the parent element.

场景:
如下图,这个下拉列表是固定的,里面使用了tooltips这个组件。

image

确实也是放在DOM元素里面了,如下图:
image

组件的使用的如下:

image

监听的是tooltip父组件的onMouseLeave事件。

但是鼠标在进入tooltips的content里面的时候,还是依然会触发tooltip父组件的onMouseLeave事件。

请问这个是什么原因?谢谢

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 at the getTooltipContainer behavior and reproduce the described fixed dropdown scenario, paying attention to the parent tooltip's onMouseLeave event when the pointer enters the content. The issue names no files or tests; done means the parent interaction behaves as intended when tooltip content is entered, with a regression check for that scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.