frontend: fix tab-switching on 'New task' page
This commit is contained in:
parent
8fd205c817
commit
6c997bfc43
1 changed files with 1 additions and 1 deletions
|
@ -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}
|
||||||
|
|
Loading…
Reference in a new issue