Skip to content

Commit ac9fef3

Browse files
Use await instead of then
Changed it to use await instead of the then method
1 parent 8026ee3 commit ac9fef3

File tree

1 file changed

+3
-3
lines changed
  • packages/kit-headless/src/components/select

1 file changed

+3
-3
lines changed

packages/kit-headless/src/components/select/select.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ export const SelectRoot = component$(
7474
if (expanded && trigger && listBox) {
7575
listBox.style.visibility = 'hidden';
7676

77-
updatePosition(trigger, listBox).then(() => {
78-
listBox.style.visibility = 'visible';
79-
});
77+
await updatePosition(trigger, listBox);
78+
79+
listBox.style.visibility = 'visible';
8080
}
8181

8282
if (expanded === false) {

0 commit comments

Comments
 (0)