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

Aperta
#1,056 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
angular, typescript
Ambito
frontend

Direzione di ricerca

Inizia riproducendo il comportamento segnalato di change() di EventEmitter nel modulo Angular mostrato nell’issue, utilizzando la risposta di esempio fornita e una domanda senza input dell’utente. Identifica dove viene introdotto il defaultValue vuoto e definisci done in modo che restituisca undefined o null quando l’utente non ha risposto; nell’issue non sono indicati né un file sorgente né un test.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
TypeScript
Stelle
706
Fork
493
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di formio/angular

Tutte le issue di formio/angular

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.