File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/kit-headless/src/components/combobox Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import {
15
15
getNextEnabledOptionIndex ,
16
16
getPrevEnabledOptionIndex ,
17
17
} from './utils' ;
18
+ import { usePopover } from '../popover' ;
18
19
19
20
export type ComboboxInputProps = {
20
21
disableOnBlur ?: boolean ;
@@ -26,6 +27,8 @@ export const ComboboxInput = component$(
26
27
...props
27
28
} : ComboboxInputProps ) => {
28
29
const context = useContext ( ComboboxContextId as ContextId < ComboboxContext < O > > ) ;
30
+ const triggerId = `${ context . localId } -trigger` ;
31
+ const { initPopover$ } = usePopover ( triggerId ) ;
29
32
30
33
const inputId = props . id || `${ context . localId } -input` ;
31
34
const listboxId = `${ context . localId } -listbox` ;
@@ -149,7 +152,7 @@ export const ComboboxInput = component$(
149
152
}
150
153
aria-controls = { listboxId }
151
154
value = { context . inputValueSig . value }
152
- onInput$ = { [ onInputBehavior$ , props . onInput$ ] }
155
+ onInput$ = { [ onInputBehavior$ , props . onInput$ , initPopover$ ] }
153
156
onBlur$ = { [
154
157
$ ( ( ) => {
155
158
disableOnBlur ? null : ( context . isListboxOpenSig . value = false ) ;
You can’t perform that action at this time.
0 commit comments