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

Fixed the hover issue for sub-menu for card attachment #4494

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Rajat-Dabade
Copy link
Contributor

Summary

This PR fixes the closing of the sub-menu when hovering out the file attachment.

Ticket Link

Fixes #4374

@Rajat-Dabade Rajat-Dabade self-assigned this Jan 19, 2023
@Rajat-Dabade Rajat-Dabade added 1: UX Review Requires review by ux 2: Dev Review Requires review by a core committer labels Jan 19, 2023
Copy link
Contributor

@asaadmahmood asaadmahmood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, I did not have a look at this issue carefully. I have sent @Rajat-Dabade a video on the expected behaviour.

@harshilsharma63
Copy link
Member

/update-branch

@@ -122,8 +122,18 @@ const AttachmentElement = (props: Props): JSX.Element|null => {
document.body.removeChild(anchor)
}

const handleMouseLeave = () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, DOM manipulation is an expensive operation. I suppose you're doing this to remove focus from something? There must be a better way for this.

@mattermost-build
Copy link
Contributor

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1: UX Review Requires review by ux 2: Dev Review Requires review by a core committer Lifecycle/1:stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Attachment delete menu opens up on hovering back in attachment
4 participants