Skip to content

Commit da9f673

Browse files
committed
use Event instead of CustomEvent
1 parent e440128 commit da9f673

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
@@ -190,7 +190,7 @@ function fireCommitEvent(target: Element, detail?: Record<string, unknown>): voi
190190
}
191191

192192
function fireSelectEvent(target: Element): void {
193-
target.dispatchEvent(new CustomEvent('combobox-select', {bubbles: true}))
193+
target.dispatchEvent(new Event('combobox-select', {bubbles: true}))
194194
}
195195

196196
function visible(el: HTMLElement): boolean {

0 commit comments

Comments
 (0)