flow icon indicating copy to clipboard operation
flow copied to clipboard

When I add an event listener to an Element I want a way of making the listener stop propagation so that listeners on parents won't get the same event

Open Legioth opened this issue 8 years ago • 2 comments

Legioth avatar Jun 19 '16 13:06 Legioth

I would like to suggest to extend:

com.vaadin.flow.dom.DomListenerRegistration

by

com.vaadin.flow.dom.DomListenerRegistration.cancelBubble(boolean) com.vaadin.flow.dom.DomListenerRegistration.stopPropagation(boolean)

As I can see it is possible to stopPropagation via com.vaadin.flow.dom.DomListenerRegistration.setFilter(String) where "String" is (event.stopPropagation() || true), but this is not so well.

netbeansuser2019 avatar Jun 09 '20 05:06 netbeansuser2019

The similar functionality is already implemented in ComponentEventBus and AbstractDataProvider.

mshabarov avatar Oct 04 '22 11:10 mshabarov