Fix: Attachment Dropdown Trigger Fix#1543
Conversation
WalkthroughA CSS class was added to the "Download All Attachments" menu item in the mail display component to modify pointer event handling when the item is disabled due to the absence of attachments. No changes were made to logic, event handling, or control flow. Changes
Assessment against linked issues
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (2)📓 Common learningsapps/mail/components/mail/mail-display.tsx (3)🔇 Additional comments (1)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
i guess i already raised a pr about this..... |
No it's not about that, while hiding the button works fine for now, i added it because the issue is in how we have made While hiding the button conditionally may solve for this particular use-case, there may come other cases where button has to be dis-abled and not hidden. |

Fixes #1539
Possible Solutions
data-[disabled]:pointer-events-nonefrom DropdownMenuItem as radix-ui has issue presently in how it handles when pointer-events-none is added + Also this affects the dropdown in all places used.Maybe we can use something like
data-[disabled]:cursor-not-allowed.2. added classname only to this specific component with pointer-events-auto to work normally along with disabled.
I have went with 2 at present as other affects it many places.
Screen.Recording.2025-06-29.at.2.33.20.PM.mov
Summary by CodeRabbit