Commit 8ff6a3a2 authored by devyaniChoubey's avatar devyaniChoubey Committed by Diego Mello
Browse files

[FIX] Disable reset button if form didn't changed (#1569)



Co-authored-by: default avatarDiego Mello <diegolmello@gmail.com>
parent 3a9ba9c6
......@@ -425,9 +425,11 @@ class RoomInfoEditView extends React.Component {
style={[
styles.buttonContainer_inverted,
styles.buttonInverted,
{ flex: 1, borderColor: themes[theme].auxiliaryText }
{ flex: 1, borderColor: themes[theme].auxiliaryText },
!this.formIsChanged() && styles.buttonContainerDisabled
]}
onPress={this.reset}
disabled={!this.formIsChanged()}
testID='room-info-edit-view-reset'
>
<Text
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment