1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

disable next button on clearing form

This commit is contained in:
Jernej Pregelj 2019-03-05 10:10:22 +01:00
parent c4b100bad4
commit fe9f850338

View File

@ -169,6 +169,16 @@ class Publish extends Component<{}, PublishState> {
}
}
}))
} else {
this.setState(prevState => ({
validationStatus: {
...prevState.validationStatus,
1: {
...prevState.validationStatus[1],
allFieldsValid: false
}
}
}))
}
//
@ -184,6 +194,16 @@ class Publish extends Component<{}, PublishState> {
}
}
}))
} else {
this.setState(prevState => ({
validationStatus: {
...prevState.validationStatus,
2: {
...prevState.validationStatus[2],
allFieldsValid: false
}
}
}))
}
//
@ -203,6 +223,16 @@ class Publish extends Component<{}, PublishState> {
}
}
}))
} else {
this.setState(prevState => ({
validationStatus: {
...prevState.validationStatus,
3: {
...prevState.validationStatus[3],
allFieldsValid: false
}
}
}))
}
}