The only way I see of preventing the event from firing is to abort 
fireListenerOverride in HTMLElementWrapper.

I can set defaultPrevented by attaching an event listener to the element in the 
constructor of my class.

The question is whether we should abort the event dispatching if the event is 
defaultPrevented.

In short, we can solve this problem by adding to the beginning of 
HTMLElementWrapper.fireListenerOverride:

if(eventObject.defaultPrevented)return false;

The question is whether this is something we should be doing.

I have no other ideas of how to solve this problem.

Harbs

> On Jan 7, 2019, at 4:37 PM, Olaf Krueger <[email protected]> wrote:
> 
> What's about setting up a default handler which always handles the click
> event.
> Depending on your conditions, maybe calling stopPropagation() or
> stopImmediatePropagation() will prevent further propagation?
> 
> Maybe this helps,
> Olaf
> 
> 
> 
> --
> Sent from: http://apache-royale-development.20373.n8.nabble.com/

Reply via email to