Hi Greg,

Assuming I've understood what you need--I've adapted the React example
for focusing an input element
(http://facebook.github.io/react/docs/working-with-the-browser.html#refs-and-getdomnode)
here:

https://github.com/ddellacosta/om-cookbook/blob/master/focus/src/core.cljs

I purposely trigger a re-render by setting state in the focus event
handler, and it seems to not affect the focus, so this technique should
work for you.  Let me know if not, or if I was mistaken about what you
were after.

DD

(2014/07/27 18:39), Greg Zapp wrote:
> I'm having a really tough time figuring the best way(or even a viable
> way) to get the input box to gain focus when the edit button is
> clicked.  I can get it to happen.. if the :style doesn't change on
> the input element.  That seems to trigger a render and focus is lost
> :|  What's the best way to do this?
> 
> 
> Thanks, -Greg
> 

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to