-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Fix double action menu #9986
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
base: develop
Are you sure you want to change the base?
Fix double action menu #9986
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #9986 +/- ##
===========================================
+ Coverage 73.45% 73.53% +0.07%
===========================================
Files 427 428 +1
Lines 46244 46254 +10
Branches 4132 4133 +1
===========================================
+ Hits 33968 34011 +43
+ Misses 12276 12243 -33
🚀 New features to boost your workflow:
|
| const itemRef = useRef<HTMLDivElement>(null); | ||
| const handleContextMenuClick = useContextMenuClick(itemRef); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe you may put useRef to useContextMenuClick to reduce duplication
|
Motivation and context
Applied fix for a couple of problems that can cause actions menu for cards to open twice.
Removed wrapper over actions menu button and added explicit dispatch of right click event to context menu, with this logic we will have only one menu.
Related #9949
How has this been tested?
Checklist
developbranchLicense
Feel free to contact the maintainers if that's a concern.