rum

Simple, decomplected, isomorphic HTML UI library for Clojure and ClojureScript | 0.12.8 https://github.com/tonsky/rum/blob/gh-pages/CHANGELOG.md#0128
cheatex 2018-11-30T14:40:19.000700Z

Hi. Does anyone have a working example of handling keyboard events?

cheatex 2018-11-30T14:44:43.001400Z

I basically stuck at

(rum/defc test-c []
  [:div {:tabIndex 1, :on-keyPress on-key}
   [:p "Test"]])
and > react-dom.inc.js:894 Warning: Invalid event handler property onKeypress. Did you mean onKeyPress?

2018-11-30T14:48:09.001600Z

Try :on-key-press

cheatex 2018-11-30T14:54:40.003200Z

@maridonkers tabindex could also use some change I think ) Thanks!

👍 1