From d00820389a1c231452697a006d1c5c10622091d7 Mon Sep 17 00:00:00 2001 From: samhere06 <118881732+samhere06@users.noreply.github.com> Date: Tue, 29 Oct 2024 14:25:43 +0530 Subject: [PATCH] removed onstate change subscription causing incorrect payload (#217) Co-authored-by: mohas22 Co-authored-by: tumms2021389 <97188066+tumms2021389@users.noreply.github.com> --- src/components/fields/Currency/index.ts | 3 --- src/components/fields/Integer/index.ts | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/components/fields/Currency/index.ts b/src/components/fields/Currency/index.ts index 6f0704b..084441a 100644 --- a/src/components/fields/Currency/index.ts +++ b/src/components/fields/Currency/index.ts @@ -52,9 +52,6 @@ class Currency extends FormComponentBase { // setup this component's styling... this.theComponentStyleTemplate = currencyStyles; - - // NOTE: Need to bind the callback to 'this' so it has this element's context when it's called. - this.registerAndSubscribeComponent(this.onStateChange.bind(this)); } disconnectedCallback() { diff --git a/src/components/fields/Integer/index.ts b/src/components/fields/Integer/index.ts index 6a323e1..0b1e048 100644 --- a/src/components/fields/Integer/index.ts +++ b/src/components/fields/Integer/index.ts @@ -40,9 +40,6 @@ class Integer extends FormComponentBase { // setup this component's styling... this.theComponentStyleTemplate = integerStyles; - - // NOTE: Need to bind the callback to 'this' so it has this element's context when it's called. - this.registerAndSubscribeComponent(this.onStateChange.bind(this)); } disconnectedCallback() {