Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Brokyeom committed Dec 5, 2024
1 parent 3deaaad commit 8db8de3
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/ui/Input/TextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,7 @@ const TextArea = forwardRef<HTMLTextAreaElement, TextAreaProps>((props, forwarde
const { onChange, ...restInputProps } = inputProps;
const { disabled, readOnly, required } = restInputProps;

<<<<<<< Updated upstream
const isValid = validationFn ? validationFn(value ?? '') : true;
=======
const isValid = validationFn ? validationFn(value) : true;
>>>>>>> Stashed changes
const isEmpty = value && value.length === 0;

const submitButtonRef = useRef<HTMLButtonElement | null>(null);
Expand Down Expand Up @@ -175,13 +171,8 @@ const TextArea = forwardRef<HTMLTextAreaElement, TextAreaProps>((props, forwarde
)}

{maxLength ? (
<<<<<<< Updated upstream
<p className={`${S.count} ${!isEmpty && value && value.length > maxLength ? S.maxCount : ''}`}>
{value?.length}/{maxLength}
=======
<p className={`${S.count} ${!isEmpty && value.length > maxLength ? S.maxCount : ''}`}>
{value.length}/{maxLength}
>>>>>>> Stashed changes
</p>
) : null}
</div>
Expand Down

0 comments on commit 8db8de3

Please sign in to comment.