Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TextField example: fix onChange typing error when strictFunctionTypes…
… is true (#11928) #### Pull request checklist - [x] Addresses an existing issue: Fixes #11927 - [x] Include a change request file using `$ yarn change` #### Description of changes Fix the typing error for `onChange` inside TextField examples when `strictFunctionTypes` is set to `true` ``` TS2322: Type '(ev: React.FormEvent<HTMLInputElement>, newValue?: string | undefined) => void' is not assignable to type '(event: FormEvent<HTMLInputElement | HTMLTextAreaElement>, newValue?: string | undefined) => void'. Types of parameters 'ev' and 'event' are incompatible. Type 'FormEvent<HTMLInputElement | HTMLTextAreaElement>' is not assignable to type 'FormEvent<HTMLInputElement>'. Type 'HTMLInputElement | HTMLTextAreaElement' is not assignable to type 'HTMLInputElement'. Type 'HTMLTextAreaElement' is missing the following properties from type 'HTMLInputElement': accept, align, alt, checked, and 23 more. ```
- Loading branch information