[PR #1957] [MERGED] Allow AutoComplete with OpenOnFocus to show items even without user input #2993

Closed
opened 2026-01-29 18:21:26 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/radzenhq/radzen-blazor/pull/1957
Author: @LegendOfLynkle
Created: 2/11/2025
Status: Merged
Merged: 2/11/2025
Merged by: @enchev

Base: masterHead: master


📝 Commits (2)

  • 023897e fix(autocomplete): OpenOnFocus now lets you view items in the dropdown even if you have not provided any searchText. This is for the case where you want the autocomplete but the user does/may not know what it is they want to complete.
  • b806f4c fix(autocomplete): Adjusted it so that removing search text back to null/empty string will reset autocomplete suggestions.

📊 Changes

4 files changed (+37 additions, -4 deletions)

View changed files

📝 Radzen.Blazor/RadzenAutoComplete.razor (+1 -1)
📝 Radzen.Blazor/RadzenAutoComplete.razor.cs (+6 -3)
RadzenBlazorDemos/Pages/AutoCompleteOpenOnFocus.razor (+23 -0)
📝 RadzenBlazorDemos/Pages/AutoCompletePage.razor (+7 -0)

📄 Description

This pull request alters RadzenAutoComplete so that OpenOnFocus now lets you view items in the dropdown even if you have not provided any searchText. This is for the case where you want the autocomplete but the user does/may not know what it is they want to complete/what options are available. Without this a user has to type at least one character, which then affects their suggestions, to know what options are available.

A demo of this functionality has also been added to the demos page for AutoComplete.

Please let me know if anything needs to be changed or you have any feedback.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/radzenhq/radzen-blazor/pull/1957 **Author:** [@LegendOfLynkle](https://github.com/LegendOfLynkle) **Created:** 2/11/2025 **Status:** ✅ Merged **Merged:** 2/11/2025 **Merged by:** [@enchev](https://github.com/enchev) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`023897e`](https://github.com/radzenhq/radzen-blazor/commit/023897e8a3ea03693dd74a1346cebaaad09534bd) fix(autocomplete): OpenOnFocus now lets you view items in the dropdown even if you have not provided any searchText. This is for the case where you want the autocomplete but the user does/may not know what it is they want to complete. - [`b806f4c`](https://github.com/radzenhq/radzen-blazor/commit/b806f4cdd8865d9c4f55dda7e5377d633809387a) fix(autocomplete): Adjusted it so that removing search text back to null/empty string will reset autocomplete suggestions. ### 📊 Changes **4 files changed** (+37 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `Radzen.Blazor/RadzenAutoComplete.razor` (+1 -1) 📝 `Radzen.Blazor/RadzenAutoComplete.razor.cs` (+6 -3) ➕ `RadzenBlazorDemos/Pages/AutoCompleteOpenOnFocus.razor` (+23 -0) 📝 `RadzenBlazorDemos/Pages/AutoCompletePage.razor` (+7 -0) </details> ### 📄 Description This pull request alters RadzenAutoComplete so that OpenOnFocus now lets you view items in the dropdown even if you have not provided any searchText. This is for the case where you want the autocomplete but the user does/may not know what it is they want to complete/what options are available. Without this a user has to type at least one character, which then affects their suggestions, to know what options are available. A demo of this functionality has also been added to the demos page for AutoComplete. Please let me know if anything needs to be changed or you have any feedback. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 18:21:26 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#2993