Skip to content

Commit 2aac582

Browse files
yordan-stgjulivan
authored andcommitted
fix: add optional chaining for type in input change condition
1 parent 841bb52 commit 2aac582

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)