From 2faa8b62c809384cfc778a5079e225ecccad684c Mon Sep 17 00:00:00 2001 From: Fedi Rajhi Date: Tue, 20 Dec 2022 20:27:56 +0100 Subject: [PATCH] Revert adding defaultValue prop --- src/components/RoomNameInput/index.js | 1 - src/components/RoomNameInput/index.native.js | 1 - src/components/RoomNameInput/roomNameInputPropTypes.js | 4 ---- 3 files changed, 6 deletions(-) diff --git a/src/components/RoomNameInput/index.js b/src/components/RoomNameInput/index.js index c85fd0a8adf0..2c27fca0e24b 100644 --- a/src/components/RoomNameInput/index.js +++ b/src/components/RoomNameInput/index.js @@ -73,7 +73,6 @@ class RoomNameInput extends Component { autoCapitalize="none" onBlur={this.props.onBlur} autoFocus={this.props.autoFocus} - defaultValue={this.props.defaultValue} /> ); } diff --git a/src/components/RoomNameInput/index.native.js b/src/components/RoomNameInput/index.native.js index 19fac90d8189..273bae8a8107 100644 --- a/src/components/RoomNameInput/index.native.js +++ b/src/components/RoomNameInput/index.native.js @@ -45,7 +45,6 @@ class RoomNameInput extends Component { keyboardType={keyboardType} // this is a bit hacky solution to a RN issue https://github.com/facebook/react-native/issues/27449 onBlur={this.props.onBlur} autoFocus={this.props.autoFocus} - defaultValue={this.props.defaultValue} /> ); } diff --git a/src/components/RoomNameInput/roomNameInputPropTypes.js b/src/components/RoomNameInput/roomNameInputPropTypes.js index 6ff7a05ae7cb..53666a6ae694 100644 --- a/src/components/RoomNameInput/roomNameInputPropTypes.js +++ b/src/components/RoomNameInput/roomNameInputPropTypes.js @@ -25,9 +25,6 @@ const propTypes = { /** Callback that is called when the text input is blurred */ onBlur: PropTypes.func, - /** The value to set the field to initially */ - defaultValue: PropTypes.string, - /** AutoFocus */ autoFocus: PropTypes.bool, }; @@ -41,7 +38,6 @@ const defaultProps = { inputID: undefined, onBlur: () => {}, - defaultValue: undefined, autoFocus: false, };