Skip to content

Commit

Permalink
change default delay for the useDelayedInputFocus hook
Browse files Browse the repository at this point in the history
  • Loading branch information
akinwale committed Oct 4, 2023
1 parent 1a80a9e commit f7b8659
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hooks/useDelayedInputFocus.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import CONST from '../CONST';
* @param {Object} inputRef
* @param {Number} [delay]
*/
export default function useDelayedInputFocus(inputRef, delay = CONST.INPUT_FOCUS_DELAY) {
export default function useDelayedInputFocus(inputRef, delay = CONST.ANIMATED_TRANSITION) {
const timeoutRef = useRef(null);

useFocusEffect(
Expand Down
2 changes: 1 addition & 1 deletion src/pages/workspace/WorkspaceNewRoomPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ function WorkspaceNewRoomPage(props) {
);

const roomNameInputRef = useRef(null);
useDelayedInputFocus(roomNameInputRef);
useDelayedInputFocus(roomNameInputRef, CONST.INPUT_FOCUS_DELAY);

return (
<FullPageNotFoundView
Expand Down

0 comments on commit f7b8659

Please sign in to comment.