mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-01 02:41:39 -05:00
Fixed text not displaying when checkbox is disabled
Refs https://github.com/TryGhost/Team/issues/2878
This commit is contained in:
parent
5dc0e92dc2
commit
024d43478a
1 changed files with 10 additions and 6 deletions
|
@ -495,7 +495,13 @@ class SignupPage extends React.Component {
|
|||
});
|
||||
};
|
||||
|
||||
const checkbox = site.portal_signup_checkbox_required ? (
|
||||
const termsText = (
|
||||
<div className="gh-portal-signup-terms-content"
|
||||
dangerouslySetInnerHTML={{__html: site.portal_signup_terms_html}}
|
||||
></div>
|
||||
);
|
||||
|
||||
const signupTerms = site.portal_signup_checkbox_required ? (
|
||||
<label>
|
||||
<input
|
||||
type="checkbox"
|
||||
|
@ -504,11 +510,9 @@ class SignupPage extends React.Component {
|
|||
onChange={handleCheckboxChange}
|
||||
/>
|
||||
<span class="checkbox"></span>
|
||||
<div className="gh-portal-signup-terms-content"
|
||||
dangerouslySetInnerHTML={{__html: site.portal_signup_terms_html}}
|
||||
></div>
|
||||
{termsText}
|
||||
</label>
|
||||
) : null;
|
||||
) : termsText;
|
||||
|
||||
const errorClassName = this.state.errors?.checkbox ? 'gh-portal-error' : '';
|
||||
|
||||
|
@ -516,7 +520,7 @@ class SignupPage extends React.Component {
|
|||
|
||||
return (
|
||||
<div className={className}>
|
||||
{checkbox}
|
||||
{signupTerms}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue