Skip to content

Commit

Permalink
fix(js): allow body scroll when detached mode responsively disabled. f…
Browse files Browse the repository at this point in the history
…ixes algolia#1250
  • Loading branch information
aldenquimby committed May 10, 2024
1 parent e0187cd commit c4ed14d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/autocomplete-js/src/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ export function autocomplete<TItem extends BaseItem>(
return () => {
if (panelContainerElement.contains(panelElement)) {
panelContainerElement.removeChild(panelElement);
panelContainerElement.classList.remove('aa-Detached');
}
};
});
Expand Down

0 comments on commit c4ed14d

Please sign in to comment.