@justeattakeaway/pie-checkbox
Advanced tools
Comparing version 0.0.0-snapshot-release-20240522125118 to 0.0.0-snapshot-release-20240522130647
@@ -47,3 +47,3 @@ import { LitElement as b, html as y, nothing as d, unsafeCSS as f } from "lit"; | ||
formResetCallback() { | ||
this._internals.setFormValue(this.value || "on"); | ||
this.checkbox && (this.checkbox.value = this.value || ""), this._internals.setFormValue(this.value || ""); | ||
} | ||
@@ -50,0 +50,0 @@ updated(e) { |
{ | ||
"name": "@justeattakeaway/pie-checkbox", | ||
"description": "PIE Design System Checkbox built using Web Components", | ||
"version": "0.0.0-snapshot-release-20240522125118", | ||
"version": "0.0.0-snapshot-release-20240522130647", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
@@ -85,3 +85,7 @@ import { | ||
public formResetCallback (): void { | ||
this._internals.setFormValue(this.value || 'on'); | ||
if (this.checkbox) { | ||
this.checkbox.value = this.value || ''; | ||
} | ||
this._internals.setFormValue(this.value || ''); | ||
} | ||
@@ -88,0 +92,0 @@ |
35149
832