Skip to content

Commit

Permalink
fix(SearchBar): add search classname for SearchBar (#1720)
Browse files Browse the repository at this point in the history
Co-authored-by: Zhang Rui <zhangrui@growingio.com>
  • Loading branch information
Ryan Zhang and Zhang Rui committed Dec 22, 2021
1 parent 3369329 commit 0bd38de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/search-bar/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const SearchBar = React.forwardRef<HTMLInputElement, SearchBarProps>((props, ref
disabled,
placeholder,
onSearch,
className,
} = props;

const prefixCls = usePrefixCls('search', customizePrefixCls);
Expand Down Expand Up @@ -68,6 +69,7 @@ const SearchBar = React.forwardRef<HTMLInputElement, SearchBarProps>((props, ref
<Input
data-testid="search-bar"
{...props}
className={classNames(className, prefixCls)}
type="text"
placeholder={placeholder}
value={value}
Expand Down

1 comment on commit 0bd38de

@vercel
Copy link

@vercel vercel bot commented on 0bd38de Dec 22, 2021

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.