We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80bd357 commit 1d1eaadCopy full SHA for 1d1eaad
packages/components/src/components/custom-select/custom-select.lite.tsx
@@ -258,12 +258,9 @@ export default function DBCustomSelect(props: DBCustomSelectProps) {
258
// Fallback to default behavior
259
return `${DEFAULT_REMOVE} ${state.getOptionLabel(option)}`;
260
},
261
- handleTagRemove: (
262
- option: CustomSelectOptionType,
263
- event?: ClickEvent<HTMLButtonElement> | void
264
- ) => {
+ handleTagRemove: (option: CustomSelectOptionType, event?: any) => {
265
if (event) {
266
- event.stopPropagation();
+ event.stopPropagation?.();
267
}
268
269
state.handleSelect(option.value);
0 commit comments