Skip to content

Commit

Permalink
fix(js): resize panel also when hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed Nov 10, 2020
1 parent 5279dba commit 9007fe0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/autocomplete-js/src/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ export function autocomplete<TItem>({
});

const onResize = debounce(() => {
if (!panel.hasAttribute('hidden')) {
setPanelPosition();
}
setPanelPosition();
}, 100);

function setPanelPosition() {
Expand Down

0 comments on commit 9007fe0

Please sign in to comment.