Skip to content

Commit

Permalink
fix(textinput): Hotfix to hide clear button if clearable is false
Browse files Browse the repository at this point in the history
  • Loading branch information
aVileBroker committed Dec 6, 2021
1 parent 6f82937 commit 919c54f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/TextInput/TextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ const TextInput = ({
ref={mergeRefs([inputRef, internalInputRef])}
{...inputProps}
/>
{(onClear || clearable) && (
{clearable && (
<Button
StyledContainer={StyledClearButtonContainer}
containerRef={clearButtonContainerRef}
Expand Down

0 comments on commit 919c54f

Please sign in to comment.