Skip to content

Commit

Permalink
Use modern events
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Nov 3, 2020
1 parent 323752f commit b837dce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ class Picker {

// Modern event creation.
try {
inputEvent = new Event('input')
changeEvent = new Event('change')
inputEvent = new Event('input', { bubbles: true, cancelable: false })
changeEvent = new Event('change', { bubbles: true, cancelable: false })
} catch (e) {
// Old-fashioned way.
inputEvent = document.createEvent('KeyboardEvent')
Expand Down

0 comments on commit b837dce

Please sign in to comment.