From bb2acacf840186b0da26c612f7d34e4565ebbef0 Mon Sep 17 00:00:00 2001 From: Alexey Romanoff Date: Fri, 21 Jan 2022 12:54:54 +0300 Subject: [PATCH] fix(ajsf/core): layout functions: buildTitleMap: use empty string to conform HTML behaviour use empty string instead of null for non required empty values to conform HTML behaviour Fixes #333 --- projects/ajsf-core/src/lib/shared/layout.functions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/ajsf-core/src/lib/shared/layout.functions.ts b/projects/ajsf-core/src/lib/shared/layout.functions.ts index 59fc2afc..f5d47654 100755 --- a/projects/ajsf-core/src/lib/shared/layout.functions.ts +++ b/projects/ajsf-core/src/lib/shared/layout.functions.ts @@ -1062,7 +1062,7 @@ export function buildTitleMap( } } if (!fieldRequired && !hasEmptyValue) { - newTitleMap.unshift({ name: 'None', value: null }); + newTitleMap.unshift({ name: 'None', value: '' }); } return newTitleMap; }