Skip to content

Commit

Permalink
fix : add trim func
Browse files Browse the repository at this point in the history
  • Loading branch information
keemsebin committed Dec 4, 2024
1 parent 52321d5 commit a5a8f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/common/useInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const useInput = (initialValue = '', validation: string[] = ['https', 'ww

const onChange: ChangeEventHandler<HTMLInputElement> = useCallback((e) => {
const value = e.target.value;
setState(value);
setState(value.trim());
}, []);

const onBlur = useCallback(() => {
Expand Down

0 comments on commit a5a8f3b

Please sign in to comment.