Skip to content

Commit

Permalink
Make the input event cancelable: false
Browse files Browse the repository at this point in the history
  • Loading branch information
dombesz committed Sep 10, 2024
1 parent 2cfe7d1 commit b7bb9fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/primer/forms/primer_text_field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class PrimerTextFieldElement extends HTMLElement {
clearContents() {
this.inputElement.value = ''
this.inputElement.focus()
this.inputElement.dispatchEvent(new Event('input', { bubbles: true, cancelable: true}))
this.inputElement.dispatchEvent(new Event('input', { bubbles: true, cancelable: false }))
}

clearError(): void {
Expand Down

0 comments on commit b7bb9fe

Please sign in to comment.