[Bug] Programmatically setting focus to TimePicker or DatePicker should not open popup on UWP (note edit for iOS 14 handling!) #12174
Description
Description
A change was introduced recently (see links below) that has resulted in programmatically setting the focus to a TimePicker or DatePicker on UWP automatically opening the picker's popup. Whilst that might be consistent with what happens on Android and iOS, it is not what a native Windows user would expect. Either the change should be unwound, or an override provided so that opening the popup becomes optional. Adding that option would mean that developers do not have to write custom renderers to remove the automatic opening (or write a custome renderer to add the behavior back in if it were removed completely).
Steps to Reproduce
- Create a TimePicker or DatePicker
- Call Focus() on the TimePicker or DatePicker
- Build and run on UWP
Expected Behavior
The TimePicker or DatePicker should receive focus, but not open the popup (until either the user hits the space button, or taps on the picker)
Actual Behavior
The TimePicker or DatePicker opens automatically
Basic Information
- Version with issue: 4.8 (I believe also in 4.7 but haven't tested)
- Last known good version: 4.5