Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #63 from rpearce/fix/change-event
Browse files Browse the repository at this point in the history
Fix: use ChangeEvent over FormEvent
  • Loading branch information
rpearce committed Aug 13, 2021
2 parents 67f01b6 + b63e01e commit 4e1441d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, {
ChangeEvent,
FC,
FormEvent,
MutableRefObject,
RefObject,
TextareaHTMLAttributes,
Expand Down Expand Up @@ -64,8 +64,8 @@ type RefFn = (node: HTMLTextAreaElement) => void
export interface TextareaProps
extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'rows'> {
forwardedRef?: RefObject<HTMLTextAreaElement> | RefFn
onChange?: (evt: FormEvent<HTMLTextAreaElement>) => void
onInput?: (evt: FormEvent<HTMLTextAreaElement>) => void
onChange?: (evt: ChangeEvent<HTMLTextAreaElement>) => void
onInput?: (evt: ChangeEvent<HTMLTextAreaElement>) => void
rows?: string | number | undefined
value?: string
}
Expand Down

0 comments on commit 4e1441d

Please sign in to comment.