Skip to content

Commit

Permalink
parameter cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
akinwale committed Oct 4, 2023
1 parent 574b648 commit 7be57f5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/pages/workspace/WorkspaceNewRoomPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<FullPageNotFoundView
Expand Down

0 comments on commit 7be57f5

Please sign in to comment.