Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
feat(TextField): add onBlur prop
Browse files Browse the repository at this point in the history
  • Loading branch information
justinanastos committed Aug 19, 2019
1 parent 1241e22 commit 62e8a66
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/TextField/TextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ interface Props {
*/
inputAs?: React.ReactElement | keyof JSX.IntrinsicElements;

onBlur?: (event: React.ChangeEvent<HTMLInputElement>) => void;
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;

/**
Expand Down Expand Up @@ -110,6 +111,7 @@ export const TextField: React.FC<Props> = ({
helper,
icon,
label,
onBlur,
onChange,
placeholder,
showInfoIcon,
Expand All @@ -121,6 +123,7 @@ export const TextField: React.FC<Props> = ({
const inputProps = {
defaultValue,
disabled,
onBlur,
onChange,
placeholder,
value,
Expand Down

0 comments on commit 62e8a66

Please sign in to comment.