Skip to content

Commit

Permalink
Fix wrong ref passing
Browse files Browse the repository at this point in the history
  • Loading branch information
kowczarz committed Oct 26, 2023
1 parent 565ea7c commit 19077c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/settings/Report/RoomNamePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function RoomNamePage(props) {
>
<View style={styles.mb4}>
<RoomNameInput
ref={ref}
ref={roomNameInputRef}
inputID="roomName"
defaultValue={report.reportName}
isFocused={isFocused}
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 @@ -194,7 +194,7 @@ function WorkspaceNewRoomPage(props) {
>
<View style={styles.mb5}>
<RoomNameInput
ref={(el) => (roomNameInputRef.current = el)}
ref={roomNameInputRef}
inputID="roomName"
isFocused={props.isFocused}
shouldDelayFocus
Expand Down

0 comments on commit 19077c1

Please sign in to comment.