diff --git a/packages/pl-fe/src/components/status.tsx b/packages/pl-fe/src/components/status.tsx index dd95c6b8e9..49347fd55b 100644 --- a/packages/pl-fe/src/components/status.tsx +++ b/packages/pl-fe/src/components/status.tsx @@ -133,8 +133,9 @@ const Status: React.FC = (props) => { dispatch(replyCompose(actualStatus, status.reblog_id ? status.account : undefined)); }; - const handleHotkeyFavourite = (): void => { - toggleFavourite(actualStatus); + const handleHotkeyFavourite = (e?: KeyboardEvent): void => { + e?.preventDefault(); + dispatch(toggleFavourite(actualStatus)); }; const handleHotkeyBoost = (e?: KeyboardEvent): void => { diff --git a/packages/pl-fe/yarn.lock b/packages/pl-fe/yarn.lock index 8608520efc..ed5f06cbd4 100644 --- a/packages/pl-fe/yarn.lock +++ b/packages/pl-fe/yarn.lock @@ -4624,9 +4624,9 @@ domhandler@^4.2.0, domhandler@^4.3.1: domelementtype "^2.2.0" dompurify@^3.0.8: - version "3.0.8" - resolved "https://registry.yarnpkg.com/dompurify/-/dompurify-3.0.8.tgz#e0021ab1b09184bc8af7e35c7dd9063f43a8a437" - integrity sha512-b7uwreMYL2eZhrSCRC4ahLTeZcPZxSmYfmcQGXGkXiZSNW1X85v+SDM5KsWcpivIiUBH47Ji7NtyUdpLeF5JZQ== + version "3.1.6" + resolved "https://registry.yarnpkg.com/dompurify/-/dompurify-3.1.6.tgz#43c714a94c6a7b8801850f82e756685300a027e2" + integrity sha512-cTOAhc36AalkjtBpfG6O8JimdTMWNXjiePT2xQH/ppBGi/4uIpmj8eKyIkMJErXWARyINV/sB38yf8JCLF5pbQ== domutils@^2.8.0: version "2.8.0"