Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RadzenDatePicker - Ability to hide virtual keyboard when date selected (mobile devices) #1925

Open
paulo-rico opened this issue Jan 25, 2025 · 0 comments

Comments

@paulo-rico
Copy link
Contributor

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 -

virtualkeyboardpolicy="@(HideVirtualKeyboard ? "manual" : "auto")"

If this looks acceptable, I can put this into a PR.

Regards

Paul

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant