Looking at the elemental code that uses a lambda which will not be
EventHandler but a JsFunction. Could you try with an anonymous EventHandler
instead?

On Tue, Aug 2, 2016 at 1:51 AM, Steve Andrews <[email protected]>
wrote:

> I've created a quick test project and put it at
> https://github.com/steveandrews01/JsInteropTest
>
> The click listener only works if compiled with the flag set. If I run it
> without the flag and inspect the DOM in Chrome then the event listener is
> not attached to the button.
>
> (Changing the flag needs a SDM cache clear!)
>
> Steve
>
>
> On Monday, 1 August 2016 20:48:13 UTC+1, Goktug Gokdogan wrote:
>>
>> Can you share a small repro for this? (EventListener requiring
>> generateJsInteropExports)
>>
>> On Thu, Jul 28, 2016 at 12:27 AM, Steve Andrews <[email protected]>
>> wrote:
>>
>>> I've done some more testing and cleared my cache and can still only get
>>> EventListener to work with the generateJsInteropExports flag set.
>>>
>>> I've had another problem with EventListener on a select element but I'm
>>> using an external framework for my project (Materialize) and think that
>>> it's their framework that doesn't like the EventListener object. If I use a
>>> standard select element then it's working. I can get around this by adding
>>> the listener through a JQuery wrapper so no problem.
>>>
>>> I've also found that Window.location returns an Object - will this be
>>> sorted in a future release?
>>>
>>> Other than that Elemental is working well so far! Nice work!
>>>
>>> Steve
>>>
>>> On Friday, 22 July 2016 11:31:24 UTC+1, Jens wrote:
>>>>
>>>>
>>>> It only works with the generateJsInteropExports flag set though.
>>>>>
>>>>
>>>> Sounds like a bug to me.
>>>>
>>>> -- J.
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "GWT Contributors" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected]
>>> .
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/google-web-toolkit-contributors/16498b97-7d3d-44c7-b42b-e40be9de1e26%40googlegroups.com
>>> <https://groups.google.com/d/msgid/google-web-toolkit-contributors/16498b97-7d3d-44c7-b42b-e40be9de1e26%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "GWT Contributors" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-web-toolkit-contributors/fca60fc6-7cfd-44ea-9728-295c77293d74%40googlegroups.com
> <https://groups.google.com/d/msgid/google-web-toolkit-contributors/fca60fc6-7cfd-44ea-9728-295c77293d74%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAC7T7gnEftgbDyZ9_6hqQMonpyLoQW80YcX706jtPGYntKXx2Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to