fix: :bug: Fix clickable disabled button on event creation #576
Tim Izzo tim@octree.ch
Thu, 20 Mar 2025 15:22:54 +0100
1 files changed,
7 insertions(+),
1 deletions(-)
jump to
M
frontend/pages/new/index.tsx
→
frontend/pages/new/index.tsx
@@ -84,7 +84,13 @@ }
/> </> )} - <NextLink href="/new/details" passHref> + <NextLink + href="/new/details" + passHref + tabIndex={canSubmit ? undefined : -1} + style={{pointerEvents: canSubmit ? undefined : 'none'}} + aria-disabled={!canSubmit} + > <Button fullWidth variant="contained"