Skip to content

Commit

Permalink
fix(form): reduce layout shifts when rendering reference inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Sep 30, 2024
1 parent 375a9c0 commit 5a03eef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const AutocompleteContainer = forwardRef(function AutocompleteContainer(
const inputWrapperRect = useElementRect(rootElement)

return (
<Root ref={handleNewRef} gap={1} $narrow={(inputWrapperRect?.width || 0) < 480}>
<Root ref={handleNewRef} gap={1} $narrow={(inputWrapperRect?.width || 480) < 480}>
{props.children}
</Root>
)
Expand Down

0 comments on commit 5a03eef

Please sign in to comment.