Skip to content

Commit 9007fe0

Browse files
fix(js): resize panel also when hidden
1 parent 5279dba commit 9007fe0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/autocomplete-js/src/autocomplete.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ export function autocomplete<TItem>({
5151
});
5252

5353
const onResize = debounce(() => {
54-
if (!panel.hasAttribute('hidden')) {
55-
setPanelPosition();
56-
}
54+
setPanelPosition();
5755
}, 100);
5856

5957
function setPanelPosition() {

0 commit comments

Comments
 (0)