Skip to content

Commit

Permalink
fix(TextInput): restrict onChange event TypeScript type (#13801)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
lewandom and kodiakhq[bot] authored May 15, 2023
1 parent a34df27 commit 2568048
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/react/src/components/TextInput/TextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ export interface TextInputProps
* Optionally provide an `onChange` handler that is called whenever `<input>`
* is updated
*/
onChange?: (
event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>
) => void;
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;

/**
* Optionally provide an `onClick` handler that is called whenever the
Expand Down

0 comments on commit 2568048

Please sign in to comment.