Skip to content

Commit

Permalink
remove disableToggle occurence
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanMarcMilletScality committed Jul 3, 2024
1 parent 3e38ba1 commit 136d02f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions src/lib/components/tablev2/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export type SearchProps = {
value?: string;
locale?: TableLocalType;
totalCount?: number;
} & Omit<Props, 'disableToggle' | 'onChange'>;
} & Omit<Props, 'onChange'>;

const SearchContainer = styled.div`
display: flex;
Expand Down Expand Up @@ -88,7 +88,6 @@ export function TableSearch(props: SearchProps) {
<SearchInput
value={value}
placeholder={translations[locale].search}
disableToggle
size="1"
onChange={(evt) => {
if (typeof onChange === 'function') {
Expand Down
2 changes: 0 additions & 2 deletions src/lib/organisms/attachments/AttachmentTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,6 @@ export const AttachmentTable = <ENTITY_TYPE,>({
onBlur={() => {
setSearchInputIsFocused(false);
}}
disableToggle
disabled={filteredEntities.status === 'error'}
/>
<Loader />
Expand All @@ -616,7 +615,6 @@ export const AttachmentTable = <ENTITY_TYPE,>({
onBlur={() => {
setSearchInputIsFocused(false);
}}
disableToggle
searchInputIsFocused={searchInputIsFocused}
/>
)}
Expand Down
1 change: 0 additions & 1 deletion stories/SearchInput/searchinput.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ export const Debounce = {
<SearchInput
placeholder="Search"
value={value}
disableToggle
onReset={action('on input reset')}
onChange={(e) => {
setValue(e.target.value);
Expand Down

0 comments on commit 136d02f

Please sign in to comment.