react-component / react-component/trigger

IE,edge浏览器下 鼠标引入异常关闭

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

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
391
Forks
245
PR merge metrics
No merged PRs in 30d

Description

IE和edge鼠标移入 svg时会触发onMouseLeave导致 下拉弹窗异常关闭
具体代码,使用"antd": "4.7.3"
`ReactDOM.render(
<Dropdown
overlay={



}

<a className="ant-dropdown-link" onClick={(e) => e.preventDefault()}>
  Cascading menu 
</a>

,
document.getElementById("root")
);`
具体步骤,无法复现的话鼠标点击那个红圈 然后鼠标反复移入移除

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 with the provided antd 4.7.3 Dropdown reproduction containing an SVG circle, then inspect how mouse enter and leave events are handled for the overlay in IE and Edge. Reproduce the repeated pointer movement or circle click and verify that moving over the SVG no longer triggers an unexpected popup close.

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
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.