Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

[Bug] Programmatically setting focus to TimePicker or DatePicker should not open popup on UWP (note edit for iOS 14 handling!) #12174

Open
@johnshardman

Description

@johnshardman

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).

#10909
#10916

Steps to Reproduce

  1. Create a TimePicker or DatePicker
  2. Call Focus() on the TimePicker or DatePicker
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions