Reactive Forms/FormControl Have Incorrect Values When Using iOS QuickPath/Slide to Type
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- angular, ios, typescript
- Ambito
- mobile
Direzione di ricerca
Riproduci il problema con un TextField iOS associato a un Angular FormControl e sottoscrivi il suo evento valueChanged seguendo i passaggi QuickPath elencati. Traccia dove viene propagato il valore di TextField al controllo del modulo e verifica che il valore completo, ad esempio «Test test», venga emesso durante la digitazione tramite scorrimento e dopo lo spazio successivo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI: 8.2.3
- Cross-platform modules: 8.1.1
- Android Runtime: 8.1.1
- iOS Runtime: 8.2.1
- Plugin(s): iqkeyboardmanager (2.0.0)
- NativeScript-Angular: 12.2.0
- Angular: 12.2.13
Describe the bug
When using swipe to type/QuickPath on an iOS keyboard in a reactive form, the word input with QuickPath temporarily replaces the value of the control with just that word instead of appending to the control's previous value. Another input into the keyboard subsequently returns the value back to the full expected value.
To Reproduce
- Have a
TextFieldbound to aFormControlwith theformControlattribute. - Subscribe to the control's
valueChangedevent and output the value each time the value changes. - Start inputting a word into the text field, then add a space, for example, "Test ".
- Now use QuickPath/slide to type to input another word, like "test" again.
- The last output you see will be "test" instead of "Test test".
- Input a space, the output will return to the full value of the control.
Expected behavior
When using slide to type/QuickPath, form controls should retain the full value of those controls and emit those values as usual to valueChanged.
- Lingua principale
- TypeScript
- Stelle
- 55
- Fork
- 13
- Merge medio
- 16m
- PR unite (30g)
- 1
Guida per i contributori
Apri la guida per i contributori
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 NativeScript/angular
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
NativeScript/angular#170 · 1 commento ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
NativeScript/angular#164 ·
-
My types are gone Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
NativeScript/angular#163 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
NativeScript/angular#158 · 1 reazione ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
NativeScript/angular#155 ·
Tutte le issue di NativeScript/angular
Issue simili
-
Type/Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
OpenNSW/nsw-srilanka#497 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
0xMiden/bridge-portal#132 ·
-
react-doctor severity:warning tech-debt
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
digidem/comapeo-cloud-app#403 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100