We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi!
It seems that the event delegation in $fromDOMEvent doesn't work with events that don't bubble up, like focus or blur.
$fromDOMEvent
focus
blur
It seems that, for events that don't bubble, you want to use event capturing when adding the event listener.
Took a quick look how CycleJS does it. They just look up the event in a list of events (https://github.com/cyclejs/cyclejs/blob/master/dom/src/MainDOMSource.ts#L28), and determine if the event should captured or not based on that (https://github.com/cyclejs/cyclejs/blob/master/dom/src/MainDOMSource.ts#L59).
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi!
It seems that the event delegation in
$fromDOMEvent
doesn't work with events that don't bubble up, likefocus
orblur
.It seems that, for events that don't bubble, you want to use event capturing when adding the event listener.
Took a quick look how CycleJS does it. They just look up the event in a list of events (https://github.com/cyclejs/cyclejs/blob/master/dom/src/MainDOMSource.ts#L28), and determine if the event should captured or not based on that (https://github.com/cyclejs/cyclejs/blob/master/dom/src/MainDOMSource.ts#L59).
The text was updated successfully, but these errors were encountered: