A cascaded BitDialog AutoFocusButton replaces the AutoFocusSelector a dialog sets itself
I maintainer di solito rispondono entro 1 giorno
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Description
BitDialogParams.AutoFocusButton is the natural app-wide default for confirmations: the Boilerplate itself sets AutoFocusButton = BitDialogButton.Cancel in its new AppBitParams (#13849), so a stray Enter never carries out the destructive answer.
But AutoFocusButton takes precedence over AutoFocusSelector, and the cascade supplies it even to a dialog that set AutoFocusSelector itself. So once an app makes Cancel the default, every dialog that opens on a field (a reason to type, a date to pick) opens with the focus on Cancel instead, and the dialog's own choice is silently lost.
BitParams is documented as "a default and never an override", and the cascade already has the means for exactly this case (OutranksAttribute, as BitToggleButton.OnIcon outranks Icon), so this looks like a missing declaration rather than a design choice.
Steps to reproduce
<BitParams Parameters="[new BitDialogParams { AutoFocusButton = BitDialogButton.Cancel }]">
<BitDialog IsOpen="true" Title="Why?" AutoFocusSelector="textarea">
<BitTextField Multiline />
</BitDialog>
</BitParams>
Expected
The dialog opens with the focus on its textarea, since it named that itself.
Actual
The focus lands on the Cancel button. The only workaround is writing AutoFocusButton="null" on every such dialog.
Found while porting #13849 into an app on 11.0.0-pre-10; the same code is on develop.
- Lingua principale
- C#
- Stelle
- 1.4k
- Fork
- 264
- Merge medio
- 20h 36m
- PR unite (30g)
- 322
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di bitfoundation/bitplatform
-
The test-platform skill doesn't say what three of its failures look likeForse già presa @yasmoradi l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
bitfoundation/bitplatform#14022 ·
I maintainer di solito rispondono entro 1 giorno
-
bit Boilerplate's realtime profile picture E2E tests wait for a request the hybrid apps never make in their WebViewForse già presa @yasmoradi l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 25/100
bitfoundation/bitplatform#14020 ·
I maintainer di solito rispondono entro 1 giorno
-
bit Boilerplate's E2E phone number tests fail when they pick a non-US +1 area codeForse già presa @yasmoradi l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
bitfoundation/bitplatform#14018 ·
I maintainer di solito rispondono entro 1 giorno
-
bit Boilerplate can't create a product when embeddings are onForse già presa @yasmoradi l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 20/100
bitfoundation/bitplatform#14016 ·
I maintainer di solito rispondono entro 1 giorno
-
bit Boilerplate's E2E tests sign in to the demos with the wrong seeded passwordForse già presa @yasmoradi l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 20/100
bitfoundation/bitplatform#14014 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di bitfoundation/bitplatform
Issue simili
-
/api/oauth/introspect emits clientId and tokenType instead of RFC 7662's client_id and token_typeApertabug P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
nightscout/nocturne#2317 ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG]: Position intent set on a simple order is dropped when it becomes a bracket, OCO or OTO orderForse già presa @RaphaelFakhri l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
alpacahq/alpaca-trade-api-csharp#903 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
joinrpg/joinrpg-net#5752 ·
I maintainer di solito rispondono entro 1 giorno
-
bug ux
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
CodeForFire/lagebuch#714 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
dimitar-radenkov/Pointframe#294 ·
I maintainer di solito rispondono entro 1 giorno