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,
|
submitting: false,
|
||||||
creatingChannel: false,
|
creatingChannel: false,
|
||||||
modal: null,
|
modal: null,
|
||||||
|
isFee: false,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -635,11 +636,8 @@ class PublishForm extends React.PureComponent {
|
||||||
label={__("Free")}
|
label={__("Free")}
|
||||||
type="radio"
|
type="radio"
|
||||||
name="isFree"
|
name="isFree"
|
||||||
value="1"
|
onChange={() => this.handleFeePrefChange(false)}
|
||||||
onChange={() => {
|
checked={!this.state.isFee}
|
||||||
this.handleFeePrefChange(false);
|
|
||||||
}}
|
|
||||||
defaultChecked={!this.state.isFee}
|
|
||||||
/>
|
/>
|
||||||
<FormField
|
<FormField
|
||||||
type="radio"
|
type="radio"
|
||||||
|
@ -648,7 +646,7 @@ class PublishForm extends React.PureComponent {
|
||||||
onChange={() => {
|
onChange={() => {
|
||||||
this.handleFeePrefChange(true);
|
this.handleFeePrefChange(true);
|
||||||
}}
|
}}
|
||||||
defaultChecked={this.state.isFee}
|
checked={this.state.isFee}
|
||||||
/>
|
/>
|
||||||
<span className={!this.state.isFee ? "hidden" : ""}>
|
<span className={!this.state.isFee ? "hidden" : ""}>
|
||||||
<FormField
|
<FormField
|
||||||
|
|
Loading…
Add table
Reference in a new issue