blazorbootstrap icon indicating copy to clipboard operation
blazorbootstrap copied to clipboard

AutoComplete clears text automatically when another control is set

Open kevon-vems opened this issue 1 year ago • 3 comments

NOTE: We do not look at .zip attachments for issue investigation.

Describe the bug If a user searches using AutoComplete, then puts text into a different textbox, the autocomplete clears.

To Reproduce Steps to reproduce the behavior:

  1. Create a form with AutoComplete and other fields
  2. Search for something that does not exist
  3. Type data in a different field
  4. AutoComplete text is cleared

Expected behavior AutoComplete data stays in place and is accessible in code-behind

Screenshots https://github.com/user-attachments/assets/3acb5499-75aa-44f6-9dd3-f427a6d0a852

Versions (please complete the following information):

  • .NET Version: .NET 9
  • BlazorBootstrap: 3.1.0
  • Server
  • Blazor Interactive Render Mode: Server
  • Blazor Interactivity Location: Global

Desktop (please complete the following information):

  • Win 11
  • Browser chrome

kevon-vems avatar Dec 12 '24 17:12 kevon-vems

@kevon-vems Thank you for using BlazorBootstrap. Free text is not supported in the AutoComplete component. Users can search for something and must select an option from the list; otherwise, it will be empty. We do not have any plans to support this feature at this moment, but we may consider it in the future based on community feedback.

gvreddy04 avatar Dec 17 '24 15:12 gvreddy04

Just adding that I'd love to see this feature as well

MathiasMehl avatar Feb 03 '25 21:02 MathiasMehl

As an alternative - the AutoComplete component in BootstrapBlazor supports free text:

https://www.blazor.zone/auto-complete

alexhowgego avatar Mar 20 '25 11:03 alexhowgego