This is a migrated thread and some comments may be shown as answers.

Input gets focused on Cancel or Set

1 Answer 11 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Zhi Yuan
Top achievements
Rank 1
Veteran
Zhi Yuan asked on 02 Feb 2021, 04:49 AM

Based on the example https://demos.telerik.com/blazor-ui/datetimepicker/overview, on Cancel or Set, the Input gets focused. On the mobile, it causes the keyboard to appear as well, which is not an intuitive behaviour.

Is it possible for this behaviour to be removed?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 02 Feb 2021, 12:03 PM

Hi Zhi Yuan,

Generally speaking from an accessibility point of view, popups must have a default focus (we do that), and when they close, they must return the user to the flow of the application in the place where they took it from. In this case, that's an interaction with the picker component.

That said, I have logged an enhancement idea so that this does not happen: https://feedback.telerik.com/blazor/1505044-avoid-input-focus-after-interacting-with-the-popup-of-the-pickers-in-order-to-prevent-the-soft-keyboard-from-showing. You can Follow its status in the portal.

 

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
DateTimePicker
Asked by
Zhi Yuan
Top achievements
Rank 1
Veteran
Answers by
Marin Bratanov
Telerik team
Share this question
or