diff --git a/packages/blade/src/components/Input/BaseInput/BaseInput.tsx b/packages/blade/src/components/Input/BaseInput/BaseInput.tsx index 853e91f4aec..0e7b94d0993 100644 --- a/packages/blade/src/components/Input/BaseInput/BaseInput.tsx +++ b/packages/blade/src/components/Input/BaseInput/BaseInput.tsx @@ -326,7 +326,10 @@ type BaseInputCommonProps = FormInputLabelProps & * @default true **/ isTableInputCell?: boolean; - + /** + * Callback to be invoked when the backdrop is clicked + */ + onBackdropClick?: () => void; /** * Hides the form hints and shows them as tooltip of trailing */ @@ -825,6 +828,7 @@ const _BaseInput: React.ForwardRefRenderFunction diff --git a/packages/blade/src/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.tsx b/packages/blade/src/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.tsx index 649566c48f7..b2f0d70a3e3 100644 --- a/packages/blade/src/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.tsx +++ b/packages/blade/src/components/Input/DropdownInputTriggers/BaseDropdownInputTrigger.tsx @@ -316,6 +316,7 @@ const _BaseDropdownInputTrigger = ( onChange={props.isSelectInput ? undefined : props.onInputValueChange} onKeyDown={props.onTriggerKeydown} size={props.size} + onBackdropClick={onTriggerClick} trailingInteractionElement={ isAutoCompleteInHeader || (isInsideTableEditableCell && !isValidationStateNone) ? null : (