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:
parent
c4b100bad4
commit
fe9f850338
@ -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
|
||||
}
|
||||
}
|
||||
}))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user