Skip to content

Commit

Permalink
prevent form submit on button press
Browse files Browse the repository at this point in the history
  • Loading branch information
kenglxn committed Dec 18, 2023
1 parent dd50296 commit 31cfc58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bedriftsmeny/velger/JuridiskEnhet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ type UnderenhetProps = {

const Underenhet = forwardRef<HTMLButtonElement, UnderenhetProps>(({valgt, onClick, underenhet}, ref) =>
<Button
type="button"
ref={ref}
tabIndex={valgt ? 0 : -1}
aria-pressed={valgt}
Expand Down

0 comments on commit 31cfc58

Please sign in to comment.