mirror of
https://github.com/zadam/trilium.git
synced 2025-12-12 18:34:24 +01:00
fix(widgets/toggle): double event triggering when in menu
This commit is contained in:
parent
efb2f9a048
commit
483327c808
@ -146,9 +146,10 @@ export function FormListToggleableItem({ title, currentValue, onChange, ...props
|
|||||||
}
|
}
|
||||||
}}>
|
}}>
|
||||||
<FormToggle
|
<FormToggle
|
||||||
switchOnName={title} switchOffName={title}
|
switchOnName={title}
|
||||||
|
switchOffName={title}
|
||||||
currentValue={currentValue}
|
currentValue={currentValue}
|
||||||
onChange={onChange}
|
onChange={() => {}}
|
||||||
/>
|
/>
|
||||||
</FormListItem>
|
</FormListItem>
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user