-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
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
Some JS events are being dispatched as Royale events but received as native events #1170
Comments
Maybe you should add a test that a browser event on an element remains a browser event? |
Not sure what you mean... how could it be otherwise? By browser event, you mean the native JS 'Event' or 'KeyboardEvent' etc, right? I don't think you can dispatch anything in dom that is not of these known types... |
Not sure what I mean either, but what happens if it's supposed to on the element and not on the Royale component? Not sure if it makes a difference. |
At the moment there are conversions from browser events into Royale events based on constructor name for things like MouseEvent, KeyboardEvent. These probably only work for browser/user generated events I think. |
Examples are emulation IndexChangedEvent which has a 'change' type and is being sent via the browser dom. This is likely for all sub-classes that have event type names that mean they are routed through the browser dom.
If a Royale event is dispatched, that is what the listener should receive.
The text was updated successfully, but these errors were encountered: