fix(components): resolve context menu positioning issue on subsequent right-clicks #6155
+4
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #6117
Issue
The ContextMenu component wasn't updating its position when right-clicking in a new location while the menu was already open. This was caused by exit animations interfering with position recalculation.
Solution
Removed
data-[state=closed]:animate-out
from both style variants of the ContextMenu component to prevent animation conflicts during position updates. This allows the menu to properly reposition itself on subsequent right-clicks.Changes
Testing
✅ Context menu opens at correct position on initial right-click
✅ Context menu updates position correctly on subsequent right-clicks
✅ Animations still work smoothly for menu entrance
✅ Tested in both style variants
Breaking Changes
None - This is a bug fix that maintains existing functionality while improving positioning behavior.