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) {
173173 const target = event . target . closest ( '[role="option"]' )
174174 if ( ! target ) return
175175 if ( target . getAttribute ( 'aria-disabled' ) === 'true' ) return
176- fireCommitEvent ( target )
176+ fireCommitEvent ( target , event )
177177}
178178
179179function commit ( input : HTMLTextAreaElement | HTMLInputElement , list : HTMLElement ) : boolean {
@@ -184,8 +184,8 @@ function commit(input: HTMLTextAreaElement | HTMLInputElement, list: HTMLElement
184184 return true
185185}
186186
187- function fireCommitEvent ( target : Element ) : void {
188- target . dispatchEvent ( new CustomEvent ( 'combobox-commit' , { bubbles : true } ) )
187+ function fireCommitEvent ( target : Element , originalEvent ?: MouseEvent ) : void {
188+ target . dispatchEvent ( new CustomEvent ( 'combobox-commit' , { bubbles : true , originalEvent } ) )
189189}
190190
191191function visible ( el : HTMLElement ) : boolean {
You can’t perform that action at this time.
0 commit comments