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

fix: right click popup should be closed on mousedown target element #246

Merged

Conversation

rinick
Copy link
Contributor

@rinick rinick commented Mar 23, 2021

related issue:
ant-design/ant-design#29853

I didn't check showAction or hideAction in isContextMenuOnly(), because when those 2 are defined, user might have very specific expectation about the mouse behavior, so I don't want to break existing code.

@codecov
Copy link

codecov bot commented Mar 23, 2021

Codecov Report

Merging #246 (95f6581) into master (89eefdb) will increase coverage by 0.10%.
The diff coverage is 100.00%.

❗ Current head 95f6581 differs from pull request most recent head ad2b679. Consider uploading reports for the commit ad2b679 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master     #246      +/-   ##
==========================================
+ Coverage   89.01%   89.11%   +0.10%     
==========================================
  Files          11       11              
  Lines         528      533       +5     
  Branches      134      136       +2     
==========================================
+ Hits          470      475       +5     
  Misses         58       58              
Impacted Files Coverage Δ
src/index.tsx 85.46% <100.00%> (+0.21%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 89eefdb...ad2b679. Read the comment docs.

src/index.tsx Show resolved Hide resolved
@ChocolateLoverRaj
Copy link

@rinick Can you link this PR to the issue it fixes by doing Fixes #29853?

@zombieJ
Copy link
Member

zombieJ commented Apr 13, 2021

Seems contextMenu still not covered

截屏2021-04-13 上午11 52 03

@rinick
Copy link
Contributor Author

rinick commented Apr 13, 2021

Seems contextMenu still not covered

I can't see that page, hope it's fixed this time

@rinick
Copy link
Contributor Author

rinick commented May 5, 2021

@zombieJ ^

@zombieJ zombieJ merged commit 88f9c68 into react-component:master May 6, 2021
@zombieJ
Copy link
Member

zombieJ commented May 6, 2021

+ [email protected]

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.

3 participants