mirror of
https://github.com/TriliumNext/Trilium.git
synced 2025-12-10 03:53:37 -06:00
fix(react/revisions): selection not possible due to new hierarchy
This commit is contained in:
parent
06cea99b40
commit
37e6ccdc1a
@ -53,7 +53,7 @@ export default function FormList({ children, onSelect, style, fullHeight }: Form
|
||||
...builtinStyles,
|
||||
position: "relative",
|
||||
}} 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) {
|
||||
onSelect(value);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user