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 { ...@@ -425,9 +425,11 @@ class RoomInfoEditView extends React.Component {
style={[ style={[
styles.buttonContainer_inverted, styles.buttonContainer_inverted,
styles.buttonInverted, styles.buttonInverted,
{ flex: 1, borderColor: themes[theme].auxiliaryText } { flex: 1, borderColor: themes[theme].auxiliaryText },
!this.formIsChanged() && styles.buttonContainerDisabled
]} ]}
onPress={this.reset} onPress={this.reset}
disabled={!this.formIsChanged()}
testID='room-info-edit-view-reset' testID='room-info-edit-view-reset'
> >
<Text <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