kioo: unable to render editable input field

18 views
Skip to first unread message

Amar

unread,
Jul 29, 2015, 4:18:00 PM7/29/15
to Enfocus
Hi! I'm using reagent and kioo together.  The following snippet renders an input field and populates it, but the field is not editable.

(defsnippet sample "templates/sample.html" [:#sample-form]
  [{:strs[name]}]
  { [:#name] (kioo/set-attr :value name) })


To make the field editable, I tried the following:

(kioo/set-attr :defaultValue name :value name) 
(kioo/set-attr :value :name :onChange (fn[_]))

Appreciate any help. Thanks.

Amar

Amar

unread,
Jul 29, 2015, 6:34:34 PM7/29/15
to Enfocus, xft...@gmail.com
This seems to be related to how I'm using re-frame.
(kioo/set-attr :defaultValue name) seems to work just fine outside of re-frame.
Reply all
Reply to author
Forward
0 new messages