diff --git a/packages/blade/src/components/Input/BaseInput/BaseInput.tsx b/packages/blade/src/components/Input/BaseInput/BaseInput.tsx index 0339121c0e5..0a0dc2ac7d7 100644 --- a/packages/blade/src/components/Input/BaseInput/BaseInput.tsx +++ b/packages/blade/src/components/Input/BaseInput/BaseInput.tsx @@ -908,8 +908,7 @@ const _BaseInput: React.ForwardRefRenderFunction): void => { + if (props.isDropdownTrigger) { + // dropdown triggers have click event on outer container as well on web to handle outer padding clicks of input + // we don't want the clicks to be called twice in such cases so we stop propogation if this click has happened + event.stopPropagation(); + } + handleOnClick?.({ name, value: event }); }} {...commonProps} @@ -169,6 +175,12 @@ const _StyledBaseInput: React.ForwardRefRenderFunction< handleOnInput?.({ name, value: event }); }} onClick={(event) => { + if (props.isDropdownTrigger) { + // dropdown triggers have click event on outer container as well on web to handle outer padding clicks of input + // we don't want the clicks to be called twice in such cases so we stop propogation if this click has happened + event.stopPropagation(); + } + handleOnClick?.({ name, value: event }); }} autoCapitalize={autoCapitalize}