react-component / react-component/tooltip
getTooltipContainer虽然能够指定父元素,但是不受父元素控制
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这个组件。

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

组件的使用的如下:

监听的是tooltip父组件的onMouseLeave事件。
但是鼠标在进入tooltips的content里面的时候,还是依然会触发tooltip父组件的onMouseLeave事件。
请问这个是什么原因?谢谢
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 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