Skip to content

Commit f69db8c

Browse files
committed
colinwm-combobox-commit
1 parent a8c4d22 commit f69db8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ function commit(input: HTMLTextAreaElement | HTMLInputElement, list: HTMLElement
185185
}
186186

187187
function fireCommitEvent(target: Element, originalEvent?: MouseEvent): void {
188-
target.dispatchEvent(new CustomEvent('combobox-commit', {bubbles: true, originalEvent}))
188+
target.dispatchEvent(new CustomEvent('combobox-commit', {bubbles: true, detail: {originalEvent}}))
189189
}
190190

191191
function visible(el: HTMLElement): boolean {

0 commit comments

Comments
 (0)