From 7121201825d6bc381902b445c20d3da510d17c81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sun, 9 Jan 2022 16:56:11 +0100 Subject: [PATCH] Fix hotkeys modal 'link' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/features/ui/components/link_footer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/soapbox/features/ui/components/link_footer.js b/app/soapbox/features/ui/components/link_footer.js index f85caf09a..5f7dc87c9 100644 --- a/app/soapbox/features/ui/components/link_footer.js +++ b/app/soapbox/features/ui/components/link_footer.js @@ -27,8 +27,9 @@ const mapStateToProps = state => { }; const mapDispatchToProps = (dispatch, { intl }) => ({ - onOpenHotkeys() { + onOpenHotkeys(e) { dispatch(openModal('HOTKEYS')); + e.preventDefault(); }, onClickLogOut(e) { dispatch(logOut(intl));