flow
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
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.
The similar functionality is already implemented in ComponentEventBus
and AbstractDataProvider
.