@lion/choice-input
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.1.5](https://github.com/ing-bank/lion/compare/@lion/choice-input@0.1.4...@lion/choice-input@0.1.5) (2019-05-07) | ||
**Note:** Version bump only for package @lion/choice-input | ||
## [0.1.4](https://github.com/ing-bank/lion/compare/@lion/choice-input@0.1.3...@lion/choice-input@0.1.4) (2019-04-29) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "@lion/choice-input", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Base for all choise inputs like checkbox/radio", | ||
@@ -34,10 +34,10 @@ "author": "ing-bank", | ||
"@lion/core": "^0.1.3", | ||
"@lion/field": "^0.1.4" | ||
"@lion/field": "^0.1.5" | ||
}, | ||
"devDependencies": { | ||
"@lion/input": "^0.1.4", | ||
"@lion/input": "^0.1.5", | ||
"@open-wc/demoing-storybook": "^0.2.0", | ||
"@open-wc/testing": "^0.11.1" | ||
}, | ||
"gitHead": "813a790613b9864f9dd01f775bc3ddb181b37d2d" | ||
"gitHead": "4cc5a3571b8c06ad99184e183c5b77ecf1669c92" | ||
} |
@@ -19,9 +19,2 @@ /* eslint-disable class-methods-use-this */ | ||
get events() { | ||
return { | ||
...super.events, | ||
_toggleChecked: [() => this, 'user-input-changed'], | ||
}; | ||
} | ||
static get syncObservers() { | ||
@@ -108,5 +101,11 @@ return { | ||
if (super.connectedCallback) super.connectedCallback(); | ||
this.addEventListener('user-input-changed', this._toggleChecked); | ||
this._reflectCheckedToCssClass(); | ||
} | ||
disconnectedCallback() { | ||
if (super.disconnectedCallback) super.disconnectedCallback(); | ||
this.removeEventListener('user-input-changed', this._toggleChecked); | ||
} | ||
_toggleChecked() { | ||
@@ -113,0 +112,0 @@ this.choiceChecked = !this.choiceChecked; |
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
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
16778
340
Updated@lion/field@^0.1.5