@govtechsg/sgds-web-component 3.1.0-rc.3 → 3.1.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Checkbox/index.umd.js +10 -8
- package/components/Checkbox/index.umd.js.map +1 -1
- package/components/Checkbox/sgds-checkbox-group.d.ts +1 -1
- package/components/Checkbox/sgds-checkbox-group.js +10 -8
- package/components/Checkbox/sgds-checkbox-group.js.map +1 -1
- package/components/index.umd.js +10 -8
- package/components/index.umd.js.map +1 -1
- package/index.umd.js +10 -8
- package/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/react/components/Checkbox/sgds-checkbox-group.cjs.js +10 -8
- package/react/components/Checkbox/sgds-checkbox-group.cjs.js.map +1 -1
- package/react/components/Checkbox/sgds-checkbox-group.js +10 -8
- package/react/components/Checkbox/sgds-checkbox-group.js.map +1 -1
|
@@ -5145,6 +5145,15 @@
|
|
|
5145
5145
|
this._isTouched = true;
|
|
5146
5146
|
});
|
|
5147
5147
|
}
|
|
5148
|
+
firstUpdated(changedProperties) {
|
|
5149
|
+
super.firstUpdated(changedProperties);
|
|
5150
|
+
if (this.value) {
|
|
5151
|
+
this._updateInputValue();
|
|
5152
|
+
}
|
|
5153
|
+
console.log(this.input, "adding this to check checkbox group input");
|
|
5154
|
+
console.log(this.input.validity, "adding this to check checkbox group input");
|
|
5155
|
+
console.log(this.inputValidationController, "inputValidtionController");
|
|
5156
|
+
}
|
|
5148
5157
|
_renderHintText() {
|
|
5149
5158
|
const hintTextTemplate = html ` <div class="form-text">${this.hintText}</div> `;
|
|
5150
5159
|
return this.hintText && hintTextTemplate;
|
|
@@ -5238,13 +5247,6 @@
|
|
|
5238
5247
|
this.input.value = this.value;
|
|
5239
5248
|
this.input.dispatchEvent(new InputEvent(eventName));
|
|
5240
5249
|
}
|
|
5241
|
-
firstUpdated(changedProperties) {
|
|
5242
|
-
super.firstUpdated(changedProperties);
|
|
5243
|
-
if (this.value) {
|
|
5244
|
-
this._updateInputValue();
|
|
5245
|
-
}
|
|
5246
|
-
console.log(this.input, "adding this to check checkbox group input");
|
|
5247
|
-
}
|
|
5248
5250
|
render() {
|
|
5249
5251
|
return html `
|
|
5250
5252
|
<fieldset>
|
|
@@ -5303,7 +5305,7 @@
|
|
|
5303
5305
|
property({ type: Boolean, reflect: true })
|
|
5304
5306
|
], SgdsCheckboxGroup.prototype, "required", void 0);
|
|
5305
5307
|
__decorate([
|
|
5306
|
-
property({
|
|
5308
|
+
property({ reflect: true })
|
|
5307
5309
|
], SgdsCheckboxGroup.prototype, "value", void 0);
|
|
5308
5310
|
__decorate([
|
|
5309
5311
|
state()
|