diff options
author | 2021-02-08 22:07:29 +0200 | |
---|---|---|
committer | 2021-02-08 22:07:29 +0200 | |
commit | 6e550347bcebeb42b193d7ebb7e8018aabb97c90 (patch) | |
tree | 573765b915b51b738f900f3db69051a95a26ed25 /src | |
parent | Set z-index and position for error message CSS (diff) |
Change ShortText blur handler name
Diffstat (limited to 'src')
-rw-r--r-- | src/components/InputTypes/ShortText.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/InputTypes/ShortText.tsx b/src/components/InputTypes/ShortText.tsx index 12f066e..dbf14ad 100644 --- a/src/components/InputTypes/ShortText.tsx +++ b/src/components/InputTypes/ShortText.tsx @@ -5,7 +5,7 @@ import { textInputs, invalidStyles } from "../../commonStyles"; interface ShortTextProps { handler: (event: ChangeEvent<HTMLInputElement>) => void, - blurHandler: (event: FocusEvent<HTMLInputElement>) => void, + onBlurHandler: (event: FocusEvent<HTMLInputElement>) => void, valid: boolean, // eslint-disable-next-line @typescript-eslint/no-explicit-any focus_ref: React.RefObject<any> @@ -14,7 +14,7 @@ interface ShortTextProps { export default function ShortText(props: ShortTextProps): JSX.Element { return ( <div css={invalidStyles}> - <input type="text" css={textInputs} placeholder="Enter Text..." onChange={props.handler} onBlur={props.blurHandler} className={!props.valid ? "invalid-box" : ""} ref={props.focus_ref}/> + <input type="text" css={textInputs} placeholder="Enter Text..." onChange={props.handler} onBlur={props.onBlurHandler} className={!props.valid ? "invalid-box" : ""} ref={props.focus_ref}/> </div> ); } |