mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
adjust input element to not have conditional rendering
This commit is contained in:
parent
cdd1935eb0
commit
9d252eb995
@ -28,23 +28,14 @@ function FilterCheckbox({
|
||||
onClick={toggleOption}
|
||||
>
|
||||
<label>
|
||||
{checked &&
|
||||
<input
|
||||
type='checkbox'
|
||||
id={name}
|
||||
name={name}
|
||||
defaultChecked={true}
|
||||
/>
|
||||
}
|
||||
|
||||
{!checked &&
|
||||
<input
|
||||
type='checkbox'
|
||||
id={name}
|
||||
name={name}
|
||||
defaultChecked={false}
|
||||
/>
|
||||
}
|
||||
<input
|
||||
key={Math.random()}
|
||||
type='checkbox'
|
||||
id={name}
|
||||
name={name}
|
||||
checked={checked}
|
||||
readOnly={true}
|
||||
/>
|
||||
{label}
|
||||
</label>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user