Skip to content

Commit

Permalink
Fix callback issue preventFormSubmission (#11023)
Browse files Browse the repository at this point in the history
### 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 

<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "test: e2e": Codesandbox examples and e2e integration tests -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->
  • Loading branch information
deathcave authored Oct 14, 2023
1 parent 8e6b754 commit 1e06611
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1e06611

Please sign in to comment.