Skip to content

Commit

Permalink
use Event instead of CustomEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
nicowenterodt committed Sep 14, 2023
1 parent e440128 commit da9f673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ function fireCommitEvent(target: Element, detail?: Record<string, unknown>): voi
}

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

function visible(el: HTMLElement): boolean {
Expand Down

0 comments on commit da9f673

Please sign in to comment.