Skip to content

Commit

Permalink
change -> input
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Dec 19, 2017
1 parent 6bcbd58 commit f4454fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/DOMComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ function listenTo(

eventName = eventName.toLowerCase();

// Use onInput instead of onChange to more closely mimic ReactDOM's onChange
// event
if (eventName === 'change') eventName = 'input';

if (lastValue)
domElement.removeEventListener(eventName, lastValue, useCapture);

Expand Down

0 comments on commit f4454fa

Please sign in to comment.