feat: add selection mode for autofocus
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 57/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- csharp, javascript
Research direction
Read the autofocus and FocusAsync work in PR #5515, then trace the focus handling in FluentTextInput, FluentTextarea, FluentAutocomplete, FluentCombobox, and FluentNumberInput to locate the JavaScript call. Done means a new parameter selects the input’s full content on focus, with existing focus behavior preserved when selection mode is off. No test or source file is named in the issue, so first identify the relevant component tests.
Written by the indexing model from the issue text.
Description
🙋 Feature Request
In PR #5515 we have added/fixed the Autofocus parameter and added the new/old method FocusAsync
Certain controls would benefit from another focus mode to automatcially select the entire content of the input. This will allow the user to override the text directly which will improve the user experience as the user does not need to select the text manually.
Components which come into my mind:
FluentTextInputFluentTextareaFluentAutocompleteFluentComboboxFluentNumberInput
😯 Current Behavior
https://github.com/user-attachments/assets/c01304b1-1fbb-4dc9-959a-63f854680378
💁 Possible Solution
Implement a new parameter to toggle a .select() instead of .focus() in JS.
- Dominant language
- C#
- Stars
- 4.9k
- Forks
- 497
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 47
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/fluentui-blazor
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
microsoft/fluentui-blazor#5688 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
microsoft/fluentui-blazor#5687 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
microsoft/fluentui-blazor#5684 ·
Maintainers usually reply within 1 day
-
fix: checked task-list declarations using * or + fail the contribution checkPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
microsoft/fluentui-blazor#5683 ·
Maintainers usually reply within 1 day
-
[FluentNumberInput ]: Screen reader does not announce the Spin Button role for the NumericType spin edit boxPossibly taken @vnbaaij claimed this 4 days ago. Opena11y A11yMAS A11ySev2 FluentUIBlazor_Web MAS4.1.2
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
microsoft/fluentui-blazor#5533 ·
Maintainers usually reply within 1 day
All issues in microsoft/fluentui-blazor
Similar issues
-
In-car displays show 0 km/h and P while the AV drivesPossibly taken @bazilinskyy claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
bazilinskyy/coupled-sim#366 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
BaryoDev/umbraco-pwa#196 ·
Maintainers usually reply within 1 day
-
bug flaky lsp-transport small
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
OpenTelemetryChatClient records gen_ai.response.finish_reasons as a JSON string instead of string[]Openarea-ai bug untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
dotnet/extensions#7995 ·
Maintainers usually reply within 1 day