Skip to content

Commit 0b9c34c

Browse files
yordan-stgjulivan
authored andcommitted
fix: add optional chaining for type in input change condition
1 parent 7496654 commit 0b9c34c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/pluggableWidgets/combobox-web/src/hooks/useDownshiftSingleSelectProps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function useDownshiftSingleSelectProps(
3535
if (
3636
selector.onFilterInputChange &&
3737
type &&
38-
(type === "__input_change__" || type.includes("input_change")) &&
38+
(type === "__input_change__" || type?.includes("input_change")) &&
3939
inputValue &&
4040
inputValue.trim().length > 0
4141
) {

0 commit comments

Comments
 (0)