diff --git a/frontend/src/shared/components/Input/index.tsx b/frontend/src/shared/components/Input/index.tsx index 1857348..c640ef3 100644 --- a/frontend/src/shared/components/Input/index.tsx +++ b/frontend/src/shared/components/Input/index.tsx @@ -117,12 +117,8 @@ const Input = React.forwardRef( return ( { - console.log(`change ${$ref}!`); - if ($ref && $ref.current) { - console.log(`value : ${$ref.current.value}`); - setHasValue(($ref.current.value !== '' || floatingLabel) ?? false); - } + onChange={e => { + setHasValue((e.currentTarget.value !== '' || floatingLabel) ?? false); }} hasValue={hasValue} ref={$ref}