Skip to content

Commit

Permalink
Merge pull request #28226 from namhihi237/fix-27688-console-room-name…
Browse files Browse the repository at this point in the history
…-edit
  • Loading branch information
francoisl authored Sep 28, 2023
2 parents 7d32e61 + ea28c1a commit 94778a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/settings/Report/RoomNamePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, {useCallback, useRef} from 'react';
import {withOnyx} from 'react-native-onyx';
import PropTypes from 'prop-types';
import {View} from 'react-native';
import {useIsFocused} from '@react-navigation/native';
import CONST from '../../../CONST';
import ScreenWrapper from '../../../components/ScreenWrapper';
import HeaderWithBackButton from '../../../components/HeaderWithBackButton';
Expand Down Expand Up @@ -48,6 +49,7 @@ function RoomNamePage(props) {
const translate = props.translate;

const roomNameInputRef = useRef(null);
const isFocused = useIsFocused();

const validate = useCallback(
(values) => {
Expand Down Expand Up @@ -101,6 +103,7 @@ function RoomNamePage(props) {
ref={(ref) => (roomNameInputRef.current = ref)}
inputID="roomName"
defaultValue={report.reportName}
isFocused={isFocused}
/>
</View>
</Form>
Expand Down

0 comments on commit 94778a5

Please sign in to comment.