mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-21 13:38:56 +02:00
Fixed the hover issue for sub-menu
This commit is contained in:
parent
7ae2e62388
commit
156abe2d80
@ -62,11 +62,17 @@
|
||||
|
||||
.fileElement-delete-download {
|
||||
position: absolute;
|
||||
display: flex;
|
||||
display: none;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.fileElement-delete-download {
|
||||
position: absolute;
|
||||
display: flex;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.fileElement-download-btn {
|
||||
display: block;
|
||||
}
|
||||
|
@ -122,8 +122,18 @@ const AttachmentElement = (props: Props): JSX.Element|null => {
|
||||
document.body.removeChild(anchor)
|
||||
}
|
||||
|
||||
const handleMouseLeave = () => {
|
||||
const tempDiv = document.createElement('div')
|
||||
document.body.appendChild(tempDiv)
|
||||
tempDiv.click()
|
||||
document.body.removeChild(tempDiv)
|
||||
}
|
||||
|
||||
return (
|
||||
<div className='FileElement mr-4'>
|
||||
<div
|
||||
className='FileElement mr-4'
|
||||
onMouseLeave={handleMouseLeave}
|
||||
>
|
||||
{showConfirmationDialogBox && <ConfirmationDialogBox dialogBox={confirmDialogProps}/>}
|
||||
<div className='fileElement-icon-division'>
|
||||
<CompassIcon
|
||||
|
Loading…
Reference in New Issue
Block a user