feat: add selection mode for autofocus

Aperta
#5,521 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
57/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp, javascript
Ambito
frontend, web-dev

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

feature v5

🙋 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:

  • FluentTextInput
  • FluentTextarea
  • FluentAutocomplete
  • FluentCombobox
  • FluentNumberInput

😯 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.

Lingua principale
C#
Stelle
4.9k
Fork
497
Merge medio
1g 1h
PR unite (30g)
47

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/fluentui-blazor

Tutte le issue di microsoft/fluentui-blazor

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.