File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
packages/kit-headless/src/components Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,13 @@ export const PopoverTrigger = component$<PopoverTriggerProps>(
148
148
}
149
149
150
150
// for the first click, we need to programmatically open the popover. The spec toggles the popover on click anyways.
151
- context . panelRef ?. value ?. togglePopover ( ) ;
151
+ if ( ! isSupportedSig . value ) {
152
+ if ( ! context . isOpenSig . value ) {
153
+ context . panelRef ?. value ?. showPopover ( ) ;
154
+ } else {
155
+ context . panelRef ?. value ?. hidePopover ( ) ;
156
+ }
157
+ }
152
158
} ) ;
153
159
154
160
const handlePointerOver$ = $ ( async ( ) => {
Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ export const SelectPopover = component$<PropsOf<typeof PopoverRoot>>((props) =>
27
27
28
28
if ( ! initialLoadSig . value ) {
29
29
if ( context . isListboxOpenSig . value ) {
30
- await showPopover ( ) ;
30
+ showPopover ( ) ;
31
31
} else {
32
- await hidePopover ( ) ;
32
+ hidePopover ( ) ;
33
33
}
34
34
}
35
35
} ) ;
You can’t perform that action at this time.
0 commit comments