NativeScript / NativeScript/angular
Reactive Forms/FormControl Have Incorrect Values When Using iOS QuickPath/Slide to Type
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- TypeScript
- Estrelas
- 55
- Forks
- 13
- Merge médio
- 16min
- PRs com merge (30d)
- 1
Descrição
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.
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Reproduza o problema com um TextField do iOS vinculado a um Angular FormControl e inscreva-se no evento valueChanged seguindo as etapas listadas do QuickPath. Rastreie onde o valor do TextField é propagado para o controle de formulário e verifique se o valor completo, como “Test test”, é emitido durante a digitação por deslizamento e após o espaço seguinte.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- angular, ios, typescript
- Domínio
- mobile
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 48/100