Skip to content

Commit

Permalink
Revert adding defaultValue prop
Browse files Browse the repository at this point in the history
  • Loading branch information
fedirjh committed Dec 20, 2022
1 parent c45d9d7 commit 2faa8b6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/components/RoomNameInput/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ class RoomNameInput extends Component {
autoCapitalize="none"
onBlur={this.props.onBlur}
autoFocus={this.props.autoFocus}
defaultValue={this.props.defaultValue}
/>
);
}
Expand Down
1 change: 0 additions & 1 deletion src/components/RoomNameInput/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
/>
);
}
Expand Down
4 changes: 0 additions & 4 deletions src/components/RoomNameInput/roomNameInputPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand All @@ -41,7 +38,6 @@ const defaultProps = {

inputID: undefined,
onBlur: () => {},
defaultValue: undefined,
autoFocus: false,
};

Expand Down

0 comments on commit 2faa8b6

Please sign in to comment.