Fix hiding price input when free is checked on publish form
This commit is contained in:
parent
c5c7dbbdee
commit
95c5ddbfda
1 changed files with 4 additions and 6 deletions
|
@ -42,6 +42,7 @@ class PublishForm extends React.PureComponent {
|
|||
submitting: false,
|
||||
creatingChannel: false,
|
||||
modal: null,
|
||||
isFee: false,
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -635,11 +636,8 @@ class PublishForm extends React.PureComponent {
|
|||
label={__("Free")}
|
||||
type="radio"
|
||||
name="isFree"
|
||||
value="1"
|
||||
onChange={() => {
|
||||
this.handleFeePrefChange(false);
|
||||
}}
|
||||
defaultChecked={!this.state.isFee}
|
||||
onChange={() => this.handleFeePrefChange(false)}
|
||||
checked={!this.state.isFee}
|
||||
/>
|
||||
<FormField
|
||||
type="radio"
|
||||
|
@ -648,7 +646,7 @@ class PublishForm extends React.PureComponent {
|
|||
onChange={() => {
|
||||
this.handleFeePrefChange(true);
|
||||
}}
|
||||
defaultChecked={this.state.isFee}
|
||||
checked={this.state.isFee}
|
||||
/>
|
||||
<span className={!this.state.isFee ? "hidden" : ""}>
|
||||
<FormField
|
||||
|
|
Loading…
Reference in a new issue