NativeScript / NativeScript/angular

Reactive Forms/FormControl Have Incorrect Values When Using iOS QuickPath/Slide to Type

Abierto
#76 0 comentarios 1 reacción 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Lenguaje dominante
TypeScript
Estrellas
55
Forks
13
Merge medio
16 min
PR fusionados (30 d)
1

Descripción

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

  1. Have a TextField bound to a FormControl with the formControl attribute.
  2. Subscribe to the control's valueChanged event and output the value each time the value changes.
  3. Start inputting a word into the text field, then add a space, for example, "Test ".
  4. Now use QuickPath/slide to type to input another word, like "test" again.
  5. The last output you see will be "test" instead of "Test test".
  6. 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.

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Reproduce el problema con un TextField de iOS vinculado a un Angular FormControl y suscríbete a su evento valueChanged siguiendo los pasos de QuickPath indicados. Rastrea dónde se propaga el valor de TextField al control de formulario y verifica que el valor completo, como «Test test», se emita durante la escritura mediante deslizamiento y después del espacio siguiente.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
angular, ios, typescript
Área
mobile
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
48/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.