mirror of
https://github.com/zadam/trilium.git
synced 2026-06-18 14:49:46 +02:00
fix(standalone/setup): clicking on advanced options submits form
This commit is contained in:
@@ -43,13 +43,13 @@ export function ExternallyControlledCollapsible({ title, children, className, ex
|
||||
setFullyExpanded(true);
|
||||
}, 250);
|
||||
return () => clearTimeout(timeout);
|
||||
} else {
|
||||
setFullyExpanded(true);
|
||||
}
|
||||
}
|
||||
setFullyExpanded(true);
|
||||
|
||||
} else {
|
||||
setFullyExpanded(false);
|
||||
}
|
||||
}, [expanded, transitionEnabled])
|
||||
}, [expanded, transitionEnabled]);
|
||||
|
||||
return (
|
||||
<div className={clsx("collapsible", className, {
|
||||
@@ -58,7 +58,10 @@ export function ExternallyControlledCollapsible({ title, children, className, ex
|
||||
})}>
|
||||
<button
|
||||
className="collapsible-title tn-low-profile"
|
||||
onClick={() => setExpanded(!expanded)}
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
setExpanded(!expanded);
|
||||
}}
|
||||
aria-expanded={expanded}
|
||||
aria-controls={contentId}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user