Skip to content

Commit

Permalink
fix(Upload): omit FormEvent onChange type (#3113)
Browse files Browse the repository at this point in the history
Should fix the `onChange` argument type inferred as any from [this slack
discussion](https://dnb.enterprise.slack.com/team/WJLKMHXMY)

Before:
<img width="957" alt="Screenshot 2023-12-19 at 14 38 37"
src="https://github.com/dnbexperience/eufemia/assets/25927156/c4147e05-8402-43f7-9a5d-be0e5f9b9964">

After:
<img width="511" alt="Screenshot 2023-12-19 at 14 37 57"
src="https://github.com/dnbexperience/eufemia/assets/25927156/3df1a3a1-cf5c-49de-a2ed-1335992be3f0">

---------

Co-authored-by: Tobias Høegh <[email protected]>
  • Loading branch information
joakbjerk and tujoworker committed Dec 19, 2023
1 parent e95ef1f commit 52e42c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dnb-eufemia/src/components/upload/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export type UploadProps = {
export type UploadAllProps = UploadProps &
SpacingProps &
LocaleProps &
React.HTMLProps<HTMLElement>
Omit<React.HTMLProps<HTMLElement>, 'onChange'>

export type UploadContextProps = {
id?: string
Expand Down

0 comments on commit 52e42c2

Please sign in to comment.