From 1e066114313841d5e96e85dc1d122f48e6a8700d Mon Sep 17 00:00:00 2001 From: Rajaneesh Date: Sat, 14 Oct 2023 22:58:46 +0530 Subject: [PATCH] Fix callback issue preventFormSubmission (#11023) ### Related Ticket(s) [Noitce & Choice w3 Publisher](https://w3.ibm.com/w3publisher/urx/notice-and-choice-v23) ### Description Notice & Choice is a legally required component to create a form where IBM collects its customer information. This section shows the specific product's legal links, terms, and conditions. Along with this, it collects users' consent regarding communication preferences. ### Changelog **New** - A new web component to create notice & choice user interface. **Changed** - Fixed call-back function preventFormSubmission **Removed** - Postal option removed from new notice and choice version --- .../src/components/notice-choice/notice-choice.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/web-components/src/components/notice-choice/notice-choice.ts b/packages/web-components/src/components/notice-choice/notice-choice.ts index 582d19bd540..3d3d064740a 100644 --- a/packages/web-components/src/components/notice-choice/notice-choice.ts +++ b/packages/web-components/src/components/notice-choice/notice-choice.ts @@ -197,6 +197,8 @@ class NoticeChoice extends StableSelectorMixin(LitElement) { if (this.ncData?.mandatoryCheckbox[this.country?.toLocaleLowerCase()]) { this.preventFormSubmission = true; this._onChange('preventFormSubmission', 'formSubmissionNo'); + } else { + this._onChange('preventFormSubmission', 'formSubmissionYes'); } /** * @description if the user already interacted with the checkboxes,