-
Notifications
You must be signed in to change notification settings - Fork 80
Event forwarding not working #124
Comments
Thanks for the report 👍 The problem was nativescript events use "event.eventName" to dispatch, but svelte uses "event.type". I had a workaround for direct listeners, but the bubble logic wasn't patched. |
@halfnelson This still seems to be not working |
I can't seem to reproduce with the latest version. Do you have a way to reproduce the problem? |
Oddly enough looks like it does work for button but, as you'll see below, there are cases it doesn't. For example tapping on a button. |
I gave it a good dig, and found that gestureEvents on views have their own dispatch mechanism and don't use observable.notify (which I was monkey patching), I found a more elegant way to address this and shipped 0.8.2 . Your example now works :) |
It does appear to be working. Thank you! |
Event forwarding on native components doesn't seem to work. In the example below
Button
should be forwarding thetap
event so thatApp
can listen to it but when the button is tapped nothing happens.Button.svelte
App.svelte
The text was updated successfully, but these errors were encountered: