From 7be57f588a39ea57cdaf092032cd96d532a7ff61 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Wed, 4 Oct 2023 19:08:30 +0100 Subject: [PATCH] parameter cleanup --- src/pages/workspace/WorkspaceNewRoomPage.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/pages/workspace/WorkspaceNewRoomPage.js b/src/pages/workspace/WorkspaceNewRoomPage.js index 4a7a36713793..34ec93fe7150 100644 --- a/src/pages/workspace/WorkspaceNewRoomPage.js +++ b/src/pages/workspace/WorkspaceNewRoomPage.js @@ -155,11 +155,10 @@ function WorkspaceNewRoomPage(props) { [translate], ); - // the delay to be used for delayed focus on the room name input field - const inputFocusDelay = 600; - const roomNameInputRef = useRef(null); - useDelayedInputFocus(roomNameInputRef, inputFocusDelay); + + // use a 600ms delay for delayed focus on the room name input field so that it works consistently on native iOS / Android + useDelayedInputFocus(roomNameInputRef, 600); return (