Skip to content

Commit

Permalink
πŸ› Autocomplete: Do not attach document.body if SSR (#3542)
Browse files Browse the repository at this point in the history
  • Loading branch information
magnh authored Jun 25, 2024
1 parent 501dd18 commit 5ada297
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ function AutocompleteInner<T>(
middleware: [
offset(4),
flip({
boundary: document?.body,
boundary: typeof document === 'undefined' ? undefined : document?.body,
}),
size({
apply({ rects, elements }: MiddlewareState) {
Expand Down

0 comments on commit 5ada297

Please sign in to comment.