[Question] how to disable to set the defaultValue to all the questions?

Abierto
#1,056 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
angular, typescript
Área
frontend

Línea de trabajo

Comienza reproduciendo el comportamiento reportado de change() de EventEmitter en el formulario de Angular mostrado en el issue, utilizando la respuesta de ejemplo proporcionada y una pregunta sin entrada del usuario. Identifica dónde se introduce el defaultValue vacío y define done como el retorno de undefined o null cuando el usuario no ha respondido; en el issue no se nombra ningún archivo fuente ni ninguna prueba.

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

Descripción

question

Hi,

I'm struggling for this, i'm wathcing for change() emitter and everytime there's a changes i was able to get the data object meaning this is the answers of the questions, but i already set the defaultValue to null or removed it in the json, still the return in change() still has defaultValue.

Expected is when the user doesn't do anything to the form like set no answer to the question, the response from the change should be undefined or null.

here's the sample return from the change eventemitter. i didnt do anything to the question but it has "" empty value.

Screenshot 2024-03-13 at 4 11 07 PM

Lenguaje dominante
TypeScript
Estrellas
706
Forks
493
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin 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.

Más de formio/angular

Todos los issues de formio/angular

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.