fix(ui) - checkbox click
This commit is contained in:
parent
99ee5d5cb1
commit
f0ea5fd63d
3 changed files with 4 additions and 4 deletions
|
|
@ -53,7 +53,7 @@ function SaveSearchModal(props: Props) {
|
|||
}
|
||||
}
|
||||
|
||||
const onChangeOption = (e, { checked, name }) => props.edit({ [ name ]: checked })
|
||||
const onChangeOption = ({ target: { checked, name }}: any) => props.edit({ [ name ]: checked })
|
||||
|
||||
|
||||
return (
|
||||
|
|
@ -94,7 +94,7 @@ function SaveSearchModal(props: Props) {
|
|||
onClick={ onChangeOption }
|
||||
/>
|
||||
<div
|
||||
className="flex items-center cursor-pointer"
|
||||
className="flex items-center cursor-pointer select-none"
|
||||
onClick={ () => props.edit({ 'isPublic' : !savedSearch.isPublic }) }
|
||||
>
|
||||
<Icon name="user-friends" size="16" />
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ export default (props: Props) => {
|
|||
type="checkbox"
|
||||
{ ...rest }
|
||||
/>
|
||||
{label && <span className="ml-2 select-none">{label}</span>}
|
||||
{label && <span className="ml-2 select-none mb-0">{label}</span>}
|
||||
</label>
|
||||
)
|
||||
};
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
.form-field label {
|
||||
.form-field > label {
|
||||
font-weight: 500;
|
||||
margin-bottom: 5px;
|
||||
color: '#888';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue