Closed hakenr closed 4 months ago
Some input-components use indirect setup where the input-element to be focused is contained in internal component being wrapped by the HxInputBase<>
-derived component itself.
The HxInputBase<>.FocusAsync()
call has to be passed to the underlying internal component and the contained input-element.
HxInputDate
HxInputDateRange
HxAutosuggest
HxMultiSelect
HxInputTags
HxSearchBox
Some input-components use indirect setup where the input-element to be focused is contained in internal component being wrapped by the
HxInputBase<>
-derived component itself.The
HxInputBase<>.FocusAsync()
call has to be passed to the underlying internal component and the contained input-element.
- [x]
HxInputDate
- [x]
HxInputDateRange
- [x]
HxAutosuggest
- [x]
HxMultiSelect
- [x]
HxInputTags
- [x]
HxSearchBox
Thanks for checking into this, I just saw this message now.
I did try in the latest version and confirm the cursor does now start in that box.
Is it possible to set it to popup the calendar as well? I can't get the calendar to popup when I tab into those boxes or if I do this FocusAsync() which leads to having to do a secondary click.
@chobo2 Thanks for the feedback. I added the logic to show the corresponding dropdown when the input is focused with FocusAsync()
.
Discussed in https://github.com/havit/Havit.Blazor/discussions/785