diff --git a/src/components/EstimateComboBox.tsx b/src/components/EstimateComboBox.tsx index 72c55a330..2b60c8b30 100644 --- a/src/components/EstimateComboBox.tsx +++ b/src/components/EstimateComboBox.tsx @@ -224,6 +224,8 @@ export const EstimateComboBox = React.forwardRef void) => cb(), []); + return ( ( @@ -247,7 +250,7 @@ export const EstimateComboBox = React.forwardRef )} - renderInput={() => ( + renderInput={({ ref }) => ( {/* @ts-ignore incorrect type in react-input-mask */} {(props: { value: string; onChange: () => void }) => ( @@ -256,6 +259,7 @@ export const EstimateComboBox = React.forwardRef )} diff --git a/src/components/TagComboBox.tsx b/src/components/TagComboBox.tsx index 88da6d659..159e4ce30 100644 --- a/src/components/TagComboBox.tsx +++ b/src/components/TagComboBox.tsx @@ -78,6 +78,8 @@ export const TagComboBox = React.forwardRef( ] : []; + const onClickOutside = useCallback((cb: () => void) => cb(), []); + return ( ( visible={completionVisible} error={error} disabled={disabled} + onClickOutside={onClickOutside} onChange={onTagClick} items={items} renderTrigger={(props) => (