Clicklistener source

I have a div which contains fields. I have registered a click listener on the div but it looks like events are fired when components inside the div is clicked and the event source is always the div so I can’t see when the div is clicked and when a component within the div is clicked. Any workarounds?

Sounds like you want this feature: https://github.com/vaadin/flow/issues/1020

You could probably work around the issue by writing the click handler in JavaScript instead of using the server-side API.

Olli Tietäväinen:
Sounds like you want this feature: https://github.com/vaadin/flow/issues/1020

You could probably work around the issue by writing the click handler in JavaScript instead of using the server-side API.

The whole point of the Vaadin Framework is not to write JS :wink: OK, OK, I’ll look into it…