@dereekb/dbx-form 13.11.17 → 13.11.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2039,7 +2039,12 @@ class DbxForgeCalendarDateScheduleRangeFieldComponent {
|
|
|
2039
2039
|
try {
|
|
2040
2040
|
const state = this.field()?.();
|
|
2041
2041
|
if (state?.value?.set) {
|
|
2042
|
-
|
|
2042
|
+
// Coerce undefined to null: writing undefined through Signal Forms'
|
|
2043
|
+
// deepSignal removes this field's key from the parent's children-map
|
|
2044
|
+
// (see @angular/forms _validation_errors-chunk createChildrenMap), so
|
|
2045
|
+
// the next read throws NG01902 "Orphan field". null preserves the
|
|
2046
|
+
// key while still representing "no selection".
|
|
2047
|
+
state.value.set(value === undefined ? null : value);
|
|
2043
2048
|
}
|
|
2044
2049
|
}
|
|
2045
2050
|
catch {
|