fix: Cannot drag attachment without selecting first

closes #5040
This commit is contained in:
Tom Moor
2023-06-19 20:20:32 -04:00
parent d7ae829d92
commit 25ae923130
2 changed files with 16 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ type Props = {
href: string;
isSelected: boolean;
children?: React.ReactNode;
onMouseDown?: React.MouseEventHandler<HTMLAnchorElement>;
};
export default function Widget(props: Props & ThemeProps<DefaultTheme>) {
@@ -19,6 +20,7 @@ export default function Widget(props: Props & ThemeProps<DefaultTheme>) {
}
href={props.href}
rel="noreferrer nofollow"
onMouseDown={props.onMouseDown}
>
{props.icon}
<Preview>