@dreamworld/dw-checkbox
Advanced tools
Comparing version 2.1.0 to 2.1.1-development.1
@@ -105,3 +105,3 @@ /** | ||
this.alignEnd = false; | ||
this.checked = false; | ||
this._checked = false; | ||
this.indeterminate = false; | ||
@@ -111,4 +111,13 @@ this.label = ""; | ||
} | ||
/** | ||
* dispatch `checked-changed` event. | ||
*/ | ||
updated(changedProps){ | ||
if(changedProps.has('checked')){ | ||
this.dispatchEvent(new CustomEvent('checked-changed', { detail: { checked: this.checked } } )); | ||
} | ||
} | ||
/** | ||
* Toggles current state of the checkbox | ||
@@ -127,7 +136,5 @@ */ | ||
this.checked = e.target.checked; | ||
this.dispatchEvent(new Event('checked-changed', e)); | ||
} | ||
} | ||
window.customElements.define('dw-checkbox', DwCheckbox); |
{ | ||
"name": "@dreamworld/dw-checkbox", | ||
"version": "2.1.0", | ||
"version": "2.1.1-development.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dw-checkbox.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14727
232
2