Skip to content

Commit

Permalink
Merge 339e8c4 into 7c17e40
Browse files Browse the repository at this point in the history
  • Loading branch information
KenAJoh authored Jun 15, 2023
2 parents 7c17e40 + 339e8c4 commit f3f2bcb
Show file tree
Hide file tree
Showing 3 changed files with 1,378 additions and 1,265 deletions.
5 changes: 5 additions & 0 deletions .changeset/big-shoes-flow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@navikt/ds-react": patch
---

:bug: OverridableComponent fungerer nå med komponenter som allerede bruker 'as'-prop
2 changes: 1 addition & 1 deletion @navikt/core/react/src/util/OverridableComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ export interface OverridableComponent<Component, Element extends HTMLElement> {
props: {
as: As;
} & Component &
Omit<React.ComponentPropsWithRef<As>, keyof Component>
Omit<React.ComponentPropsWithRef<As>, keyof Component | "as">
): ReturnType<React.FC>;
}
Loading

0 comments on commit f3f2bcb

Please sign in to comment.