Skip to content

should createFormArrayControl accept null values for the value object #118

@maxime1992

Description

@maxime1992

When dealing with FormArray, I believe a common use case is to click a button to add an empty entry in the array and later on from the UI fill it up.

Currently the definition is:

protected createFormArrayControl(
  key: ArrayPropertyKey<StackedNonCuttingCylinders.AsObject> | undefined,
  value: ArrayPropertyValue<StackedNonCuttingCylinders.AsObject>,
): FormControl

and value doesn't accept an object with all the required keys but with null values.

I think it should.

Anyone second that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort-1: minutesWill only take a few minutes to fix/createscope: libAnything related to the library itselfstate: needs designThis feature or fix should be discussed before writing any codetype: RFC/discussion/questionThis issue is about RFC, discussion or a questionworkaround-1: obviousObvious workaround

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions