Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[Bug] PushModalAsync modal page with Entry crashes on close for MacOS (NRE) #7886
Call PushModalAsync to show a modal page containing an Entry control. Close the page. The app will crash.
Steps to Reproduce
Modal closes without problem.
System.NullReferenceException: Object reference not set to an instance of an object
This is a follow-up issue while testing #6866 . The only difference in the repro solution is the addition of a single line to the ModalPage.xaml:
A workaround is possible by creating a derived EntryRenderer and overriding SetAccessibilityLabel: