-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
fix(event-manager): Firefox shadow dom event handling #766
fix(event-manager): Firefox shadow dom event handling #766
Conversation
Return correct original event target for Firefox Closes aurelia#765
@bigopon @michaelw85 Do we have any particular tests for this? In v2 I did this a little bit differently, starting with the more specific APIs first and falling back to the more generic ones. I seem to recall discussion that there was something wrong about v2's event handling but not sure if it applied to this. |
@fkleuver I tested the fix locally in my project (created a branch with updated dist). The method is private and I did not think any tests would run in Firefox so I did not write a unit test. I could of course quite easily provide a simple component that could be used to verify the fix (if we run tests in Firefox). On the approach, I would prefer the v2 setup. This seems correct to me, I thought the composedPath is the "new" standardized api for getting the target info. I was thinking about this approach with my change but decided to minimize impact. If @bigopon agrees I can update the PR to match v2 |
If |
@michaelw85 thanks for checking, If so let's go with @fkleuver 's suggestion and make it behave like v2 |
ok will update.
n.v.m. it was wrong in v1 and the docs I quoted. Based on the original change it's a method: https://codereview.chromium.org/2014173002/#ps100001 |
I think we're good. Thank you! @EisenbergEffect Unless you see any issue, as far as I'm concerned we can merge/release this. It's now in sync with v2. |
Thanks everyone! We'll get this out next week. |
Return correct original event target for Firefox
Closes #765