Skip to content

Commit

Permalink
[TextField] Reverts onFocus event arg not being optional
Browse files Browse the repository at this point in the history
  • Loading branch information
chloerice committed Jun 17, 2022
1 parent 2ba83b7 commit f5c2e05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polaris-react/src/components/TextField/TextField.tsx
Expand Up @@ -159,7 +159,7 @@ interface NonMutuallyExclusiveProps {
/** Callback fired when value is changed */
onChange?(value: string, id: string): void;
/** Callback fired when input is focused */
onFocus?: (event: React.FocusEvent) => void;
onFocus?: (event?: React.FocusEvent) => void;
/** Callback fired when input is blurred */
onBlur?(event: React.FocusEvent): void;
}
Expand Down

0 comments on commit f5c2e05

Please sign in to comment.