Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Move hide event to mouseDown #446

Merged
merged 2 commits into from
Mar 7, 2024
Merged

refactor: Move hide event to mouseDown #446

merged 2 commits into from
Mar 7, 2024

Conversation

zombieJ
Copy link
Member

@zombieJ zombieJ commented Mar 7, 2024

ref ant-design/ant-design#47671

看了一下过去行为,的确是 mouseDown 关闭更合理。调整一下事件,另外就是过去有一个 test 写的是元素 stopPop 可以让 Trigger 不关闭,之后又有一个 bug 是点击了 stopPop 元素时 Trigger 没有关闭。这两个本身是矛盾的,按照原生看以无论如何点击就关闭为准。

Copy link

codecov bot commented Mar 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.68%. Comparing base (7edea91) to head (2525dcf).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #446      +/-   ##
==========================================
- Coverage   97.87%   97.68%   -0.20%     
==========================================
  Files          13       13              
  Lines         799      776      -23     
  Branches      235      221      -14     
==========================================
- Hits          782      758      -24     
- Misses         17       18       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@crazyair
Copy link

crazyair commented Mar 7, 2024

那一个节点,降低覆盖率了,哪里都看不到

@zombieJ
Copy link
Member Author

zombieJ commented Mar 7, 2024

覆盖率下降是因为修改文件行变少了,总覆盖率下降。不是改动的代码覆盖率降了:
截屏2024-03-07 17 44 42

@crazyair
Copy link

crazyair commented Mar 7, 2024

覆盖率下降是因为修改文件行变少了,总覆盖率下降。不是改动的代码覆盖率降了

https://app.codecov.io/gh/react-component/trigger/pull/446/indirect-changes 这一行没覆盖了

@zombieJ zombieJ merged commit 7232f7d into master Mar 7, 2024
8 of 9 checks passed
@zombieJ zombieJ deleted the mv-mousedown branch March 7, 2024 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants