From fd68a2cb101e726fe798dd5f640a9804c2b6ce0a Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Wed, 1 Jun 2022 14:12:18 +0300 Subject: [PATCH] Input: Add condition if formControl to avoid undefined errors --- sharedComponents/input/input.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sharedComponents/input/input.component.ts b/sharedComponents/input/input.component.ts index 6b39e76f..62f69627 100644 --- a/sharedComponents/input/input.component.ts +++ b/sharedComponents/input/input.component.ts @@ -46,7 +46,7 @@ declare var UIkit; @Component({ selector: '[dashboard-input], [input]', template: ` -
+
- + {{formControl.errors.error}} Please provide a valid URL (e.g. https://example.com) - + Note: Prefer urls like "https://example.com/my-secure-image.png"