-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Revert "feat(HighContrast): Expose the XAML HighContrastChanged event to JS" #1473
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1473 +/- ##
==========================================
- Coverage 31.47% 30.86% -0.62%
==========================================
Files 266 267 +1
Lines 19296 19697 +401
Branches 1613 1716 +103
==========================================
+ Hits 6073 6079 +6
- Misses 13072 13466 +394
- Partials 151 152 +1
Continue to review full report at Codecov.
|
What is broken? I'm testing it with S4L which is based on a slightly outdated (v0.46.0) fork of RNW. |
I think I've found the problem you meant: in the Playground app I get an "Element not found" exception with a callstack referring to |
Looks like in case of the playground app the event subscription happens on a wrong thread. I fixed it this way: public override void Initialize()
{
DispatcherHelpers.RunOnDispatcher(() =>
{
_accessibility.HighContrastChanged += OnHighContrastChanged;
});
} It's not clear to me why in S4L it doesn't cause an exception. |
Ah, right, I think we updated so that Initialize and OnReactInstanceDispose run on the native module queue thread. |
I've sent a PR to fix this: #1476 |
Will close this and merge #1476 |
Reverts #1443