You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the RadzenDatePicker component on a keyboard-less device, the virtual keyboard will automatically display when a user has clicked a date, the popup has closed, and the manual entry field gets focus.
I would like to add in the ability to turn this "auto show" off if desired.
My proposed solution is this -
Add a bool property in RadzenDatePicker.razor.cs to control whether the virtual keyboard automatically displays or not -
/// <summary>
/// Specifies whether the virtual keyboard on keyboard-less devices is shown when input is focused.
/// </summary>
/// <value>True or False (default)</value>
[Parameter]
public bool HideVirtualKeyboard { get; set; } = false;
Then, add the following to the <input @ref="@input"... element of RadzenDatePicker.razor -
When using the
RadzenDatePicker
component on a keyboard-less device, the virtual keyboard will automatically display when a user has clicked a date, the popup has closed, and the manual entry field gets focus.I would like to add in the ability to turn this "auto show" off if desired.
My proposed solution is this -
Add a
bool
property inRadzenDatePicker.razor.cs
to control whether the virtual keyboard automatically displays or not -Then, add the following to the
<input @ref="@input"...
element ofRadzenDatePicker.razor
-virtualkeyboardpolicy="@(HideVirtualKeyboard ? "manual" : "auto")"
If this looks acceptable, I can put this into a PR.
Regards
Paul
The text was updated successfully, but these errors were encountered: