fix(Input): floating label now floats when the input has a value
This commit is contained in:
		@@ -117,12 +117,8 @@ const Input = React.forwardRef(
 | 
				
			|||||||
    return (
 | 
					    return (
 | 
				
			||||||
      <InputWrapper className={className} width={width}>
 | 
					      <InputWrapper className={className} width={width}>
 | 
				
			||||||
        <InputInput
 | 
					        <InputInput
 | 
				
			||||||
          onChange={() => {
 | 
					          onChange={e => {
 | 
				
			||||||
            console.log(`change ${$ref}!`);
 | 
					            setHasValue((e.currentTarget.value !== '' || floatingLabel) ?? false);
 | 
				
			||||||
            if ($ref && $ref.current) {
 | 
					 | 
				
			||||||
              console.log(`value : ${$ref.current.value}`);
 | 
					 | 
				
			||||||
              setHasValue(($ref.current.value !== '' || floatingLabel) ?? false);
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
          }}
 | 
					          }}
 | 
				
			||||||
          hasValue={hasValue}
 | 
					          hasValue={hasValue}
 | 
				
			||||||
          ref={$ref}
 | 
					          ref={$ref}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user