Skip to content

Commit 9919542

Browse files
authored
fix(SelectDialog): set search input type to "search" (#6791)
1 parent ad9937a commit 9919542

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/main/src/components/SelectDialog/SelectDialog.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const Default: Story = {
5555
return (
5656
<ListItemStandard
5757
selected={index === 1}
58-
image={currentProduct.img}
58+
image={<img src={currentProduct.img} alt="Example Image" />}
5959
description={`${currentProduct.description}${index}`}
6060
key={`${currentProduct.text}${index}`}
6161
>
@@ -156,7 +156,7 @@ export const MultiSelect: Story = {
156156
}
157157
return (
158158
<ListItemStandard
159-
image={currentProduct.img}
159+
image={<img src={currentProduct.img} alt="Example Image" />}
160160
description={`${currentProduct.description}${index}`}
161161
data-description={`${currentProduct.description}${index}`}
162162
key={`${currentProduct.text}${index}`}

packages/main/src/components/SelectDialog/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import ButtonDesign from '@ui5/webcomponents/dist/types/ButtonDesign.js';
44
import IconMode from '@ui5/webcomponents/dist/types/IconMode.js';
5+
import InputType from '@ui5/webcomponents/dist/types/InputType.js';
56
import ListSelectionMode from '@ui5/webcomponents/dist/types/ListSelectionMode.js';
67
import iconDecline from '@ui5/webcomponents-icons/dist/decline.js';
78
import iconSearch from '@ui5/webcomponents-icons/dist/search.js';
@@ -306,6 +307,7 @@ const SelectDialog = forwardRef<DialogDomRef, SelectDialogPropTypes>((props, ref
306307
placeholder={i18nBundle.getText(SEARCH)}
307308
onInput={handleSearchInput}
308309
onKeyUp={handleSearchSubmit}
310+
type={InputType.Search}
309311
icon={
310312
<>
311313
{searchValue && (

0 commit comments

Comments
 (0)