From 2ddcab42123341cec911689d85f63572715ba3eb Mon Sep 17 00:00:00 2001 From: AllForNothing Date: Tue, 6 Aug 2019 14:19:30 +0800 Subject: [PATCH] Removal of leading white space Signed-off-by: AllForNothing --- .../src/create-edit-rule/create-edit-rule.component.html | 2 +- .../lib/src/create-edit-rule/create-edit-rule.component.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/portal/lib/src/create-edit-rule/create-edit-rule.component.html b/src/portal/lib/src/create-edit-rule/create-edit-rule.component.html index c4bd8c116..e096b5992 100644 --- a/src/portal/lib/src/create-edit-rule/create-edit-rule.component.html +++ b/src/portal/lib/src/create-edit-rule/create-edit-rule.component.html @@ -68,7 +68,7 @@
diff --git a/src/portal/lib/src/create-edit-rule/create-edit-rule.component.ts b/src/portal/lib/src/create-edit-rule/create-edit-rule.component.ts index 5cb3151aa..0508e4c14 100644 --- a/src/portal/lib/src/create-edit-rule/create-edit-rule.component.ts +++ b/src/portal/lib/src/create-edit-rule/create-edit-rule.component.ts @@ -137,7 +137,11 @@ export class CreateEditRuleComponent implements OnInit, OnDestroy { } }); } - + trimText(event) { + if (event.srcElement.value) { + event.srcElement.value = event.srcElement.value.trim(); + } + } equals(c1: any, c2: any): boolean { return c1 && c2 ? c1.id === c2.id : c1 === c2; }