File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/kit-headless/src/components/popover Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ type PopoverTriggerProps = {
9
9
10
10
export function usePopover ( popovertarget : string ) {
11
11
const hasPolyfillLoadedSig = useSignal < boolean > ( false ) ;
12
- const didClickSig = useSignal < boolean > ( false ) ;
12
+ const didInteractSig = useSignal < boolean > ( false ) ;
13
13
14
14
const loadPolyfill$ = $ ( async ( ) => {
15
15
await import ( '@oddbird/popover-polyfill' ) ;
@@ -27,14 +27,14 @@ export function usePopover(popovertarget: string) {
27
27
await loadPolyfill$ ( ) ;
28
28
hasPolyfillLoadedSig . value = true ;
29
29
}
30
- didClickSig . value = true ;
30
+ didInteractSig . value = true ;
31
31
} ) ;
32
32
33
33
// event is created after teleported properly
34
34
useOnDocument (
35
35
'showpopover' ,
36
36
$ ( ( ) => {
37
- if ( ! didClickSig . value ) return ;
37
+ if ( ! didInteractSig . value ) return ;
38
38
39
39
const popover = document . querySelector ( `#${ popovertarget } ` ) ;
40
40
You can’t perform that action at this time.
0 commit comments