How to use multiple modifiers on the same JSX Eventhandler?
Closed this issue · 2 comments
chanlito commented
The following isn't working
...
onKeyup={m.enter(this.addTodo)}
onKeyup={m.esc(this.addTodo)} // JSX can't have 2 onKeyup
...
Can we some how chain the modifiers? like onKeyup={m.enter.esc(this.addTodo)}
?
wonderful-panda commented
keys is available from v2.2.0.
<div onKeyup={m.keys("enter", "esc")(this.addTodo)} />
chanlito commented
Awesome. 🎉