havit / Havit.Blazor

Free Bootstrap 5 components for ASP.NET Blazor + optional enterprise-level stack for Blazor development (gRPC code-first, layered architecture, localization, auth, ...)
https://havit.blazor.eu
MIT License
496 stars 67 forks source link

[HxInputTags] [HxAutosuggest] Dropdown does not reappear on click into already focused input when MinimumLength="0" #717

Closed hakenr closed 10 months ago

hakenr commented 10 months ago
  1. Static/Initial suggestions demo.
  2. Click into the input to show the dropdown.
  3. Click into the input again => the dropdown hides (correct).
  4. Click into the input again => the dropdown should reopen, but does not.

2023-12-29_11-46-19

The dropdown probably gets "destroyed" on hidden after click 3. There is no onfocus event on the last click (4) which would reinstantiate and open the dropdown.

We might consider leaving the dropdown instantiated on 3 (when MinimumLenght="0") or we have to detect "click into focused input" to reinstantiate it again.