Skip to content

Commit

Permalink
changed "onChange" to "onInput" for preact
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian committed Jul 12, 2017
1 parent 641c966 commit 92e9b3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/ui/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const MainUi = (props) => {
<label htmlFor="label-input">Name:</label>
<input type="text"
id="label-input"
onChange={ event => actions.user.changeName({name:event.target.value}) }
onInput={ event => actions.user.changeName({name:event.target.value}) }
value={props.user.name}/> = { (props.user.async.init)?"checking..?": <span style={{textShadow: "2px 2px 2px gray"}}>{props.user.name}</span> }


Expand Down

0 comments on commit 92e9b3c

Please sign in to comment.