Skip to content

Commit

Permalink
delay + 250 (+ 50 was inconsistent)
Browse files Browse the repository at this point in the history
  • Loading branch information
DarrenSem authored Jul 17, 2023
1 parent a5db088 commit d8ba4e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
const focusIndex = (index, delay) => setTimeout( () => inputRefs.current[index]?.focus(), delay || FOCUS_DELAY_DEFAULT );

const insertNewPlace = () => {
focusIndex(0, FOCUS_DELAY_DEFAULT + 50);
focusIndex(0, FOCUS_DELAY_DEFAULT + 250);
setPlaces(["", ...places]);
};

Expand Down

0 comments on commit d8ba4e7

Please sign in to comment.