-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Add missing OffsetX and OffsetY events to MouseEventArgs. #20478
Conversation
You'll also need to update the reference assemblies. You can read more about how to do this in this docs page.
ATM, there are no unit tests that check for attributes on browser events. I would recommend adding an E2E test to validate this change. Run the This is the same component that the E2E tests validate against. |
Thanks for the feedback. I've taken a look using the Taking a look at the E2E tests they all seem to check if the event triggers but there's no tests to check the output values. |
I think it is fine if we don't add test cases for this particular scenario if we don't already validate individual keys. It's not a particularly meaningful validation anyways. Let me know if you think otherwise @dotnet/aspnet-blazor-eng. |
Refing this to #8241. |
Thank you for submitting this for API review. This will be reviewed by @dotnet/aspnet-api-review at the next meeting of the ASP.NET Core API Review group. Please ensure you take a look at the API review process documentation and ensure that:
|
Looks totally reasonable to me. Thanks, @Valks! |
@Valks Since this PR contained a code change that modified the public interface, it had to undergo an API review. Luckily, it has passed API review and is approved for merge. There's a few things to do before merging:
To regenerate the built JavaScript asset with both your changes and the changes that have been pushed into master. Also, it looks like the build failure in this PR is due to a flaky test. Pushing anew commit with the changes from #2 should resolve this. Let me know if you have follow-up questions. |
1137ea9
to
7d14edc
Compare
Hi @captainsafia, thanks for all your help. Just wanting to understand should I create a commit adding kvm.cmd from #2? If I've misunderstood please elaborate because it feels a little strange adding code from a 6-year-old pull request. |
Typo on my part. That was meant to say #1. The merge commit should've triggered a rebuild. This is ready for merging now. Thanks for making the change and addressing the follow-ups. |
Hi everyone, firstly I'd like to say a big THANK YOU for the great work on Blazor and DotNet Core, I'm loving it! Thanks |
The fix has not been released yet but will be released as part of the preview in May. |
@captainsafia Has this been released yet as I'm currently on the latest version of Blazor and do not see Offset X/Y within the |
@KieranDevvs What preview have you installed? I am not able to repro the issue on 5.0.0-preview5. |
Correct. This will be shipped in .NET 5. If you use one of the previews, you should be able to play around with this change. |
@jackbond I see. Can you open a new issue with this question? Include a description of your goal and a repro if possible. The team will address it during triage. |
Added missing
OffsetX
andOffsetY
values to theMouseEventArgs
Addresses #15440
Notes: