When I change the value of an input field the value returned is the original value, not the new value. For example running the js below returns the new value:
document.getElementById("test").value
But the cljs code below returns the old value:
(dommy/attr (sel1 :#test) :value)
Is there something I need to do to refresh it, or am I misunderstanding something?
When I change the value of an input field the value returned is the original value, not the new value. For example running the js below returns the new value:
document.getElementById("test").value
But the cljs code below returns the old value:
(dommy/attr (sel1 :#test) :value)
Is there something I need to do to refresh it, or am I misunderstanding something?