Skip to content

Commit

Permalink
Remove undesired disabled prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Germain committed Sep 27, 2023
1 parent 8d5d60f commit 6b27ebf
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/components/Search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type SearchProps = {
className?: string;
/**
* The input placeholder.
* @default Search
* @default "Search…"
*/
placeholder?: string;
/**
Expand All @@ -39,10 +39,6 @@ type SearchProps = {
* Event handler called when the search changes.
*/
onChange?: (e: React.ChangeEvent) => void;
/**
* The input disabled state
*/
disabled?: boolean;
};

/**
Expand All @@ -53,7 +49,6 @@ export const Search = ({
onChange,
// TODO: i18n needs to be setup
placeholder = "Search…",
disabled,
name,
}: SearchProps) => {
const classes = classnames(styles.search, className);
Expand All @@ -69,7 +64,6 @@ export const Search = ({
placeholder={placeholder}
onChange={onChange}
className={styles.input}
disabled={disabled}
/>
</Label>
</Field>
Expand Down

0 comments on commit 6b27ebf

Please sign in to comment.