File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ function commitWithElement(event: MouseEvent) {
173
173
const target = event . target . closest ( '[role="option"]' )
174
174
if ( ! target ) return
175
175
if ( target . getAttribute ( 'aria-disabled' ) === 'true' ) return
176
- fireCommitEvent ( target , event )
176
+ fireCommitEvent ( target , { event} )
177
177
}
178
178
179
179
function commit ( input : HTMLTextAreaElement | HTMLInputElement , list : HTMLElement ) : boolean {
@@ -184,8 +184,8 @@ function commit(input: HTMLTextAreaElement | HTMLInputElement, list: HTMLElement
184
184
return true
185
185
}
186
186
187
- function fireCommitEvent ( target : Element , originalEvent ?: MouseEvent ) : void {
188
- target . dispatchEvent ( new CustomEvent ( 'combobox-commit' , { bubbles : true , detail : { originalEvent } } ) )
187
+ function fireCommitEvent ( target : Element , detail ?: Record < string , unknown > ) : void {
188
+ target . dispatchEvent ( new CustomEvent ( 'combobox-commit' , { bubbles : true , detail} ) )
189
189
}
190
190
191
191
function visible ( el : HTMLElement ) : boolean {
You can’t perform that action at this time.
0 commit comments