frontend: fix tab-switching on 'New task' page

This commit is contained in:
0x1eef 2024-02-07 23:56:18 -03:00
parent 8fd205c817
commit 6c997bfc43

View file

@ -33,7 +33,7 @@ export function Tabs({ defaultLabel, labels, onChange }: Props) {
<li className={classnames(classNames)}> <li className={classnames(classNames)}>
<a <a
href={location.hash} href={location.hash}
onClick={() => setActive(tab)} onClick={(e) => [e.preventDefault(), setActive(tab)]}
className="block p-2 text-smaller no-underline" className="block p-2 text-smaller no-underline"
> >
{tab.label} {tab.label}