From ca4146a88b5665d7003cef4a11b407510345406c Mon Sep 17 00:00:00 2001 From: Raghavendra Shivhare Date: Mon, 13 Jul 2020 12:16:27 +0530 Subject: [PATCH] Issue #SB-19244 fix: prefilling issue fixed --- src/app/faq-report-issue/faq-report-issue.page.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/faq-report-issue/faq-report-issue.page.ts b/src/app/faq-report-issue/faq-report-issue.page.ts index 48e5455378..ca27ef8ac4 100644 --- a/src/app/faq-report-issue/faq-report-issue.page.ts +++ b/src/app/faq-report-issue/faq-report-issue.page.ts @@ -634,7 +634,7 @@ export class FaqReportIssuePage implements OnInit, OnDestroy { }; options.push(value); - if (this.profile && this.profile.medium && this.profile.medium.length + if (!context.dirty && this.profile && this.profile.medium && this.profile.medium.length && this.profile.medium[0] === element.code) { control.patchValue(value.value); } @@ -689,7 +689,7 @@ export class FaqReportIssuePage implements OnInit, OnDestroy { }; options.push(value); - if (this.profile && this.profile.grade && this.profile.grade.length + if (!context.dirty && this.profile && this.profile.grade && this.profile.grade.length && this.profile.grade[0] === element.code) { control.patchValue(value.value); } @@ -745,7 +745,7 @@ export class FaqReportIssuePage implements OnInit, OnDestroy { }; options.push(value); - if (this.profile && this.profile.subject && this.profile.subject.length + if (!context.dirty && this.profile && this.profile.subject && this.profile.subject.length && this.profile.subject[0] === element.code) { control.patchValue(value.value); }