Hi Dave !

Thank you very much. I am going to study your example.
The difference with the way I try to do it is :
I have a go loop that capture the onChange event on the date input field.
(It seems overkill for one field but my form contains many more)
When I select the date from the inputDatePicker the onBlur event is
triggered but the value I receive in the event is the value before the
selection, not the one I picked.
If I tab in an other field I eventually get the correct value.

I have the minimum example
https://gist.github.com/hiram-madelaine/eac8434d25c3bee31584




2014-07-01 13:09 GMT+02:00 Dave Della Costa <[email protected]>:

> Hi Hiram, I've added an example of one way to do this here:
>
>
> https://github.com/ddellacosta/om-cookbook/blob/master/datetimepicker/src/core.cljs
>
> Let me know if that helps--
>
> DD
>
> (2014/07/01 15:46), Hiram MADELAINE wrote:
> > Hi,
> >
> > Did you managed to make it work ?
> >
> > I am trying to integrate goog.ui.InputDatePicker in Om but I have a
> trouble with the events.
> > What I did so far :
> > In the DidMount phase, I decorate my element using an instance of
> goog.ui.InputDatePicker. The problem I encounter so far is when I chose a
> date, the event is triggered with hrs previous value not the one I picked.
> > I will investigate further this week.
> >
> > Let me know
> >
> > Hiram
> >
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "ClojureScript" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/clojurescript/SLAKBf1TpDM/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
>



-- 
Hiram MADELAINE
Eloquent Logic
96, rue La Fayette 75010 Paris
+33 6 11 51 37 71

-- 
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