From 8e8760400a024aeac7f3d9f451e291986ba7cbe9 Mon Sep 17 00:00:00 2001 From: Abdelrahman Khattab Date: Fri, 12 Apr 2024 06:19:47 +0200 Subject: [PATCH] Reverting keyboard scroll fix --- src/helpers.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/helpers.ts b/src/helpers.ts index 9d2dd9f..0249b61 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -41,7 +41,6 @@ const isSafari = () => getBrowser() === 'safari' || isMobileSafari(); type ListRef = { tabIndex: number; - focus: () => void; }; /** @@ -59,7 +58,6 @@ const setListAttributes = (ref: ListRef | undefined) => { */ // eslint-disable-next-line no-param-reassign ref.tabIndex = -1; - ref.focus(); }; export {getBrowser, isMobileSafari, isSafari, setListAttributes};