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

[Bug] DatePicker / TimePicker Unfocused Event Fired When Focused #6138

Closed
lcm98 opened this issue May 8, 2019 · 5 comments
Closed

[Bug] DatePicker / TimePicker Unfocused Event Fired When Focused #6138

lcm98 opened this issue May 8, 2019 · 5 comments
Assignees
Labels
p/Android s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. s/needs-repro ❔ This reported issue doesn't include a sample project reproducing the issue. Please provide one. s/unverified New report that has yet to be verified t/bug 🐛

Comments

@lcm98
Copy link

lcm98 commented May 8, 2019

Description

Android 9.0 (Pie) - API 28 only.

When the dialog for either the DatePicker or TimePicker is opened, the unfocused event from that picker is fired.

In this particular case, I am using the unfocused event of the DatePicker to focus on the TimePicker. The result is actually that as soon as the DatePicker calendar opens, the unfocused event instantly fires which then opens the TimePicker Clock overlayed on-top of the calendar.

This seems related to #5159 , except instead of the issue being that the dialog won't open at all, it opens and immediately fires the Unfocused event.

Steps to Reproduce

  1. Have handler attached to Unfocused Event of DatePicker or TimePicker
  2. Focus DatePicker or TimePicker via Code

Expected Behavior

Unfocused event is fired when dialog is closed.

Actual Behavior

Unfocused event fires as soon as dialog opens

Basic Information

  • Version with issue: Xamarin Forms v3.6.0.344457
  • Last known good version: Unknown - Believe related to Android 9 Version
  • IDE: VS 2017 v15.9.11
  • Platform Target Frameworks:
    • Android: 9.0
@lcm98 lcm98 added s/unverified New report that has yet to be verified t/bug 🐛 labels May 8, 2019
@lcm98
Copy link
Author

lcm98 commented May 9, 2019

With further testing, this issue seems to be isolated to when the DatePicker is initially focused via code (datePicker.Focus()) as opposed to clicking the visual element

@PureWeen PureWeen self-assigned this May 10, 2019
@samhouts
Copy link
Contributor

@lcm98 Can you please attach a small project that demonstrates this issue? Thanks!

@samhouts samhouts added p/Android s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. s/needs-repro ❔ This reported issue doesn't include a sample project reproducing the issue. Please provide one. labels May 11, 2019
@lcm98
Copy link
Author

lcm98 commented May 13, 2019

Yeah I'll try to find the time this week to put something together

@samhouts
Copy link
Contributor

Thanks! We'll keep looking for it.

@samhouts
Copy link
Contributor

@lcm98 Since we haven't heard from you in more than 30 days, we hope this issue is no longer affecting you. If it is, please reopen this issue and provide the requested information so that we can look into it further. Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p/Android s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. s/needs-repro ❔ This reported issue doesn't include a sample project reproducing the issue. Please provide one. s/unverified New report that has yet to be verified t/bug 🐛
Projects
None yet
Development

No branches or pull requests

3 participants