From 6fe3eaeb3b4b729da9477de42332d302b1118705 Mon Sep 17 00:00:00 2001 From: hirsch Date: Mon, 7 Mar 2022 14:00:01 +0100 Subject: [PATCH] fix(hint): make subject on field hint optional --- packages/components/src/components.d.ts | 2 +- .../form/bal-field/bal-field-hint/bal-field-hint.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/components/src/components.d.ts b/packages/components/src/components.d.ts index cbefe80d68..860040b665 100644 --- a/packages/components/src/components.d.ts +++ b/packages/components/src/components.d.ts @@ -524,7 +524,7 @@ export namespace Components { /** * Text of the inputs label */ - "subject": string; + "subject"?: string; } interface BalFieldLabel { /** diff --git a/packages/components/src/components/form/bal-field/bal-field-hint/bal-field-hint.tsx b/packages/components/src/components/form/bal-field/bal-field-hint/bal-field-hint.tsx index 7b9d65aa6e..6a81223000 100644 --- a/packages/components/src/components/form/bal-field/bal-field-hint/bal-field-hint.tsx +++ b/packages/components/src/components/form/bal-field/bal-field-hint/bal-field-hint.tsx @@ -9,7 +9,7 @@ export class FieldHint { /** * Text of the inputs label */ - @Prop() subject = '' + @Prop() subject?: string = '' /** * Text for the close button. @@ -25,7 +25,7 @@ export class FieldHint { return ( - {this.subject} + {this.subject ? {this.subject} : ''}