mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 09:16:45 +01:00
fix(react/revisions): selection not possible due to new hierarchy
This commit is contained in:
@@ -53,7 +53,7 @@ export default function FormList({ children, onSelect, style, fullHeight }: Form
|
|||||||
...builtinStyles,
|
...builtinStyles,
|
||||||
position: "relative",
|
position: "relative",
|
||||||
}} onClick={(e) => {
|
}} onClick={(e) => {
|
||||||
const value = (e.target as HTMLElement)?.dataset?.value;
|
const value = (e.target as HTMLElement).closest("a.dropdown-item")?.dataset?.value;
|
||||||
if (value && onSelect) {
|
if (value && onSelect) {
|
||||||
onSelect(value);
|
onSelect(value);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user