Skip to content

Commit

Permalink
fix(input): dispatch an input event when the inner input fires an inp…
Browse files Browse the repository at this point in the history
…ut event (#94)
  • Loading branch information
daenub authored Jan 17, 2024
1 parent b97cf71 commit ea0969a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/input/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,12 @@ export class LeuInput extends LitElement {
*/
handleInput(event) {
this.value = event.target.value

const customEvent = new CustomEvent("input", {
bubbles: true,
composed: true,
})
this.dispatchEvent(customEvent)
}

/**
Expand Down

0 comments on commit ea0969a

Please sign in to comment.