From 6426802d189842f5b32e4678b801eeb6dd817bbf Mon Sep 17 00:00:00 2001 From: pk Date: Mon, 13 Mar 2023 14:28:45 +0100 Subject: [PATCH] Make sure _value is correct after reset was called. --- package.json | 2 +- tp-checkbox.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c1692f3..7300825 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tp/tp-checkbox", - "version": "1.0.5", + "version": "1.0.6", "description": "", "main": "tp-checkbox.js", "scripts": { diff --git a/tp-checkbox.js b/tp-checkbox.js index 22b9ca2..9192676 100644 --- a/tp-checkbox.js +++ b/tp-checkbox.js @@ -118,7 +118,7 @@ class TpCheckbox extends Inert(ControlState(FormElement(LitElement))) { } set value(val) { - this._value = val; + this._value = val || ''; } }