diff --git a/package.json b/package.json index 4c36cab..594a071 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tp/tp-checkbox", - "version": "1.0.1", + "version": "1.0.2", "description": "", "main": "tp-checkbox.js", "scripts": { diff --git a/tp-checkbox.js b/tp-checkbox.js index b713dd6..e458169 100644 --- a/tp-checkbox.js +++ b/tp-checkbox.js @@ -90,6 +90,7 @@ class TpCheckbox extends Inert(ControlState(FormElement(LitElement))) { toggle() { this.checked = !this.checked; + this.dispatchEvent(new CustomEvent('checked-changed', { detail: this.checked, bubbles: true, composed: true })); } get value() {