fix(react/revisions): selection not possible due to new hierarchy

This commit is contained in:
Elian Doran
2025-08-27 16:37:07 +03:00
parent 06cea99b40
commit 37e6ccdc1a

View File

@@ -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);
}