Skip to content

Commit

Permalink
fix(search): Fix the overlapping content issue around the clear button (
Browse files Browse the repository at this point in the history
  • Loading branch information
artemtrusov-cengage authored Oct 4, 2024
1 parent 113785d commit 1da9900
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/search-clear-overlaps.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'react-magma-dom': patch
---

fix(search): Fix the overlapping content issue around the clear button
4 changes: 3 additions & 1 deletion packages/react-magma-dom/src/components/InputBase/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,9 @@ export const InputBase = React.forwardRef<HTMLInputElement, InputBaseProps>(
iconPosition={iconPosition}
inputSize={inputSize ? inputSize : InputSize.medium}
isClearable={
inputWrapperStyle?.width
type === InputType.search
? isClearable
: inputWrapperStyle?.width
? isClearable
: isClearable && inputLength > 0
}
Expand Down

2 comments on commit 1da9900

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.