Skip to content

Commit ab1bd4e

Browse files
committed
feat(): hand over remove-labels correctly and adapt model
1 parent f5d2b3e commit ab1bd4e

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

packages/components/src/components/custom-select/model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export type DBCustomSelectDefaultState = {
265265
getNativeSelectValue: () => string;
266266
getOptionLabel: (option: CustomSelectOptionType) => string;
267267
getOptionChecked: (value?: string) => boolean;
268-
getTagRemoveLabel: (index: number) => string;
268+
getTagRemoveLabel: (option: CustomSelectOptionType) => string;
269269
selectAllEnabled: boolean;
270270
searchEnabled: boolean;
271271
amountOptions: number;

showcases/angular-showcase/src/app/components/custom-select/custom-select.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"
3838
[label]="exampleName"
3939
[options]="exampleProps?.options"
40+
[removeTagsTexts]="exampleProps?.removeTagsTexts"
4041
[variant]="exampleProps?.variant"
4142
[message]="exampleProps?.message"
4243
[required]="exampleProps?.required"

showcases/react-showcase/src/components/custom-select/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ const getCustomSelect = ({
4242
validMessage,
4343
validation,
4444
invalidMessage,
45-
showRequiredAsterisk
45+
showRequiredAsterisk,
46+
removeTagsTexts
4647
}: DBCustomSelectProps & {
4748
lineBreak?: boolean;
4849
info?: boolean;
@@ -89,6 +90,7 @@ const getCustomSelect = ({
8990
label={children}
9091
ariaListLabel={`${id}-${children}`}
9192
options={options}
93+
removeTagsTexts={removeTagsTexts}
9294
variant={variant}
9395
message={message}
9496
required={required}

showcases/vue-showcase/src/components/custom-select/CustomSelect.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ const getSearchFilter = (option: CustomSelectOptionType, _: string): boolean =>
6262
"
6363
:label="exampleName"
6464
:options="exampleProps?.options"
65+
:removeTagsTexts="exampleProps?.removeTagsTexts"
6566
:variant="exampleProps?.variant"
6667
:message="exampleProps?.message"
6768
:required="exampleProps?.required"

0 commit comments

Comments
 (0)