Skip to content

Commit

Permalink
B - preventDefault event handling (#1409)
Browse files Browse the repository at this point in the history
løser bug hvor en ny rad førte side 8 refreshes

Co-authored-by: Tore Sinding Bekkedal <tore.sinding.bekkedal@nav.no>
Co-authored-by: Åshild Lobben Simonsen <ashild.lobben.simonsen@nav.no>
  • Loading branch information
3 people authored Jun 14, 2024
1 parent 24f0c0c commit fc288bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/08-vedlegg/TabellView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const TabellView = ({opplysning}: {opplysning: VedleggFrontend}) => {
const {leggTilRad} = useOpplysningTekster(opplysning.type);

return (
<form>
<form onSubmit={(e) => e.preventDefault()}>
{entries.length > 0 && (
<ul>
{entries.map(({id}, index) => (
Expand Down

0 comments on commit fc288bd

Please sign in to comment.