Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mrderyk committed Mar 18, 2024
1 parent 54664fa commit 329f50b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
28 changes: 13 additions & 15 deletions src/SearchInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,18 @@ type Props = {

export const SearchInput = ({ value, onChange, placeholder, autoFocus, onSubmit, ...rest }: Props) => {
return (
<>
<input
data-testid="searchInput"
className="vrsSearchInput"
type="text"
autoComplete="off"
autoCapitalize="off"
spellCheck="false"
autoFocus={autoFocus}
placeholder={placeholder}
value={value}
onChange={onChange}
{...rest}
/>
</>
<input
data-testid="searchInput"
className="vrsSearchInput"
type="text"
autoComplete="off"
autoCapitalize="off"
spellCheck="false"
autoFocus={autoFocus}
placeholder={placeholder}
value={value}
onChange={onChange}
{...rest}
/>
);
};
1 change: 1 addition & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ const ReactSearchInternal: FC<Props> = ({
<div className="vrsCloseButtonWrapper">
<button
className="vrsSubmitButton"
aria-label="Close"
onClick={(e: React.MouseEvent<HTMLButtonElement>) => {
e.preventDefault();
closeModalAndResetResults();
Expand Down

0 comments on commit 329f50b

Please sign in to comment.