Skip to content

Commit

Permalink
fix(grid-filter-item): remove data list
Browse files Browse the repository at this point in the history
  • Loading branch information
sijav committed Oct 13, 2024
1 parent f788c15 commit 3caa543
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
6 changes: 3 additions & 3 deletions src/locales/de-DE/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ msgstr ""
msgid "Application (client) ID"
msgstr ""

#: src/pages/panel/inventory/GridFilterItem.tsx:188
#: src/pages/panel/inventory/GridFilterItem.tsx:185
msgid "Apply filters"
msgstr ""

Expand Down Expand Up @@ -738,7 +738,7 @@ msgstr ""
msgid "Clear"
msgstr ""

#: src/pages/panel/inventory/GridFilterItem.tsx:146
#: src/pages/panel/inventory/GridFilterItem.tsx:143
msgid "Clear all"
msgstr ""

Expand Down Expand Up @@ -1343,7 +1343,7 @@ msgstr ""
msgid "Features"
msgstr "Funktionen"

#: src/pages/panel/inventory/GridFilterItem.tsx:136
#: src/pages/panel/inventory/GridFilterItem.tsx:133
msgid "Filter by"
msgstr ""

Expand Down
6 changes: 3 additions & 3 deletions src/locales/en-US/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ msgstr "API Tokens"
msgid "Application (client) ID"
msgstr "Application (client) ID"

#: src/pages/panel/inventory/GridFilterItem.tsx:188
#: src/pages/panel/inventory/GridFilterItem.tsx:185
msgid "Apply filters"
msgstr "Apply filters"

Expand Down Expand Up @@ -738,7 +738,7 @@ msgstr "CISO at Lineaje at lineaje"
msgid "Clear"
msgstr "Clear"

#: src/pages/panel/inventory/GridFilterItem.tsx:146
#: src/pages/panel/inventory/GridFilterItem.tsx:143
msgid "Clear all"
msgstr "Clear all"

Expand Down Expand Up @@ -1343,7 +1343,7 @@ msgstr "Failing Resources"
msgid "Features"
msgstr "Features"

#: src/pages/panel/inventory/GridFilterItem.tsx:136
#: src/pages/panel/inventory/GridFilterItem.tsx:133
msgid "Filter by"
msgstr "Filter by"

Expand Down
8 changes: 0 additions & 8 deletions src/pages/panel/inventory/GridFilterItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,6 @@ export const GridFilterItem = ({ name, items, onChange, values: orgValues }: Gri
autoComplete={`grid-filter-item-search-${name}`}
placeholder={t`Search ${name}`}
slotProps={{
htmlInput: {
list: `grid-filter-item-search-${name}-datalist`,
},
input: {
startAdornment: (
<SearchIcon width={24} height={24} color={search ? `${panelUI.uiThemePalette.text.darkGray} !important` : undefined} />
Expand Down Expand Up @@ -188,11 +185,6 @@ export const GridFilterItem = ({ name, items, onChange, values: orgValues }: Gri
<Trans>Apply filters</Trans>
</Button>
</Stack>
<datalist id={`grid-filter-item-search-${name}-datalist`}>
{items.map(({ title, value }) => (
<option value={title} key={value} />
))}
</datalist>
</Popover>
</>
)
Expand Down

0 comments on commit 3caa543

Please sign in to comment.