Skip to content

Commit 5baedb9

Browse files
committed
Fixed Hiddent Field
1 parent 5ea4c5f commit 5baedb9

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

packages/web-components/src/components/notice-choice/__stories__/notice-choice.stories.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ const stateList = {
8383
Sachsen: 'SN',
8484
},
8585
};
86-
const hideErrorMessages = {
87-
true: 'true',
88-
false: 'false',
86+
const hideerrormessages = {
87+
True: 'true',
88+
False: 'false',
8989
};
9090

9191
const environment = {
@@ -116,9 +116,9 @@ const props = () => {
116116
),
117117
onChange: action('c4d-notice-choice-change'),
118118
onEmailStatusChanged: action('c4d-notice-choice-email-status-changed'),
119-
hideErrorMessages: select(
119+
hideerrormessages: select(
120120
'Hide Error Messages',
121-
hideErrorMessages,
121+
hideerrormessages,
122122
'false'
123123
),
124124
environment: select('Environment', environment, 'stage'),
@@ -133,8 +133,8 @@ export const Default = (args) => {
133133
state,
134134
termsConditionLink,
135135
questionchoices,
136-
hideErrorMessages,
137-
enableAllOptIn,
136+
hideerrormessages,
137+
enablealloptin,
138138
hiddenEmail,
139139
hiddenPhone,
140140
ncTeleDetail,
@@ -150,8 +150,8 @@ export const Default = (args) => {
150150
question-choices="${questionchoices}"
151151
state="${state}"
152152
terms-condition-link="${termsConditionLink || ''}"
153-
hide-error-message="${hideErrorMessages}"
154-
?enable-all-opt-in=${enableAllOptIn}
153+
hide-error-message="${hideerrormessages}"
154+
?enable-all-opt-in=${enablealloptin}
155155
.hiddenEmail="${hiddenEmail}"
156156
.hiddenPhone="${hiddenPhone}"
157157
.nc-tele-detail="${ncTeleDetail}"

packages/web-components/src/components/notice-choice/notice-choice.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ class NoticeChoice extends StableSelectorMixin(LitElement) {
6969
@property({ type: String, attribute: 'terms-condition-link' })
7070
termsConditionLink = html``;
7171

72-
@property({ type: Boolean, attribute: 'enable-all-opt-in' })
73-
enableAllOptIn = false;
72+
@property({ type: String, attribute: 'enable-all-opt-in' })
73+
enableAllOptIn = 'false';
7474

75-
@property({ type: Boolean, attribute: 'hide-error-message' })
76-
hideErrorMessage = false;
75+
@property({ type: String, attribute: 'hide-error-message' })
76+
hideErrorMessage = 'false';
7777

7878
@property({ type: String, attribute: 'environment' })
7979
environment = 'prod';
@@ -241,15 +241,15 @@ class NoticeChoice extends StableSelectorMixin(LitElement) {
241241
break;
242242
}
243243

244-
case 'enable-all-opt-in': {
244+
case 'enableAllOptIn': {
245245
if (oldValue !== value && typeof value === 'string') {
246246
this.enableAllOptIn = JSON.parse(value);
247247
this.setDefaultSelections();
248248
}
249249
break;
250250
}
251251

252-
case 'hide-error-message': {
252+
case 'hideErrorMessage': {
253253
if (oldValue !== value && typeof value === 'string') {
254254
this.hideErrorMessage = JSON.parse(value);
255255
this.countryBasedLegalNotice();

0 commit comments

Comments
 (0)