Skip to content

Commit

Permalink
fix(InputFile): errorForm tooltip offset
Browse files Browse the repository at this point in the history
  • Loading branch information
DSil committed Jun 13, 2023
1 parent 04dac98 commit 5801e7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/orbit-components/src/InputFile/index.tsx
Expand Up @@ -141,7 +141,7 @@ const InputFile = React.forwardRef<HTMLDivElement, Props>((props, ref) => {
const shown = tooltipShown || tooltipShownHover;

return (
<Field spaceAfter={spaceAfter} ref={label ? undefined : labelRef} $width={width}>
<Field spaceAfter={spaceAfter} ref={labelRef} $width={width}>
<Input
data-test={dataTest}
id={id}
Expand Down Expand Up @@ -206,7 +206,7 @@ const InputFile = React.forwardRef<HTMLDivElement, Props>((props, ref) => {
error={error}
helpClosable={helpClosable}
inputSize="normal"
referenceElement={label ? iconRef : labelRef}
referenceElement={labelRef}
shown={shown}
onShown={setTooltipShown}
/>
Expand Down

0 comments on commit 5801e7c

Please sign in to comment.