@lion/switch
Advanced tools
Comparing version 0.10.16 to 0.10.18
377
CHANGELOG.md
# Change Log | ||
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
## 0.10.18 | ||
## [0.10.16](https://github.com/ing-bank/lion/compare/@lion/switch@0.10.15...@lion/switch@0.10.16) (2020-07-28) | ||
### Patch Changes | ||
**Note:** Version bump only for package @lion/switch | ||
- Updated dependencies [fb236975] | ||
- @lion/form-core@0.4.1 | ||
## 0.10.17 | ||
### Patch Changes | ||
- d94a83a9: When clicking on the label the checked state should be toggled. This expected behavior comes from the native radio or checkbox. | ||
- Updated dependencies [3c61fd29] | ||
- Updated dependencies [9ecab4d5] | ||
- @lion/form-core@0.4.0 | ||
- @lion/core@0.9.0 | ||
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
## [0.10.15](https://github.com/ing-bank/lion/compare/@lion/switch@0.10.14...@lion/switch@0.10.15) (2020-07-27) | ||
## [0.10.16](https://github.com/ing-bank/lion/compare/@lion/switch@0.10.15...@lion/switch@0.10.16) (2020-07-28) | ||
**Note:** Version bump only for package @lion/switch | ||
## [0.10.15](https://github.com/ing-bank/lion/compare/@lion/switch@0.10.14...@lion/switch@0.10.15) (2020-07-27) | ||
**Note:** Version bump only for package @lion/switch | ||
## [0.10.14](https://github.com/ing-bank/lion/compare/@lion/switch@0.10.13...@lion/switch@0.10.14) (2020-07-16) | ||
@@ -26,6 +35,2 @@ | ||
## [0.10.13](https://github.com/ing-bank/lion/compare/@lion/switch@0.10.12...@lion/switch@0.10.13) (2020-07-13) | ||
@@ -35,6 +40,2 @@ | ||
## [0.10.12](https://github.com/ing-bank/lion/compare/@lion/switch@0.10.11...@lion/switch@0.10.12) (2020-07-09) | ||
@@ -44,6 +45,2 @@ | ||
## [0.10.11](https://github.com/ing-bank/lion/compare/@lion/switch@0.10.10...@lion/switch@0.10.11) (2020-07-09) | ||
@@ -53,6 +50,2 @@ | ||
## [0.10.10](https://github.com/ing-bank/lion/compare/@lion/switch@0.10.9...@lion/switch@0.10.10) (2020-07-09) | ||
@@ -62,6 +55,2 @@ | ||
## [0.10.9](https://github.com/ing-bank/lion/compare/@lion/switch@0.10.8...@lion/switch@0.10.9) (2020-07-07) | ||
@@ -71,6 +60,2 @@ | ||
## [0.10.8](https://github.com/ing-bank/lion/compare/@lion/switch@0.10.7...@lion/switch@0.10.8) (2020-07-06) | ||
@@ -80,6 +65,2 @@ | ||
## [0.10.7](https://github.com/ing-bank/lion/compare/@lion/switch@0.10.6...@lion/switch@0.10.7) (2020-06-18) | ||
@@ -89,6 +70,2 @@ | ||
## [0.10.6](https://github.com/ing-bank/lion/compare/@lion/switch@0.10.5...@lion/switch@0.10.6) (2020-06-10) | ||
@@ -98,6 +75,2 @@ | ||
## [0.10.5](https://github.com/ing-bank/lion/compare/@lion/switch@0.10.4...@lion/switch@0.10.5) (2020-06-09) | ||
@@ -107,6 +80,2 @@ | ||
## [0.10.4](https://github.com/ing-bank/lion/compare/@lion/switch@0.10.3...@lion/switch@0.10.4) (2020-06-08) | ||
@@ -116,6 +85,2 @@ | ||
## [0.10.3](https://github.com/ing-bank/lion/compare/@lion/switch@0.10.2...@lion/switch@0.10.3) (2020-06-08) | ||
@@ -125,40 +90,21 @@ | ||
## [0.10.2](https://github.com/ing-bank/lion/compare/@lion/switch@0.10.1...@lion/switch@0.10.2) (2020-06-03) | ||
### Bug Fixes | ||
* remove all stories folders from npm ([1e04d06](https://github.com/ing-bank/lion/commit/1e04d06921f9d5e1a446b6d14045154ff83771c3)) | ||
- remove all stories folders from npm ([1e04d06](https://github.com/ing-bank/lion/commit/1e04d06921f9d5e1a446b6d14045154ff83771c3)) | ||
## [0.10.1](https://github.com/ing-bank/lion/compare/@lion/switch@0.10.0...@lion/switch@0.10.1) (2020-06-02) | ||
### Bug Fixes | ||
* **button:** aria-disabled for button and switch ([31ccb4a](https://github.com/ing-bank/lion/commit/31ccb4a10f6b14e93ddaca825d5e6bf2db8dd1ee)) | ||
- **button:** aria-disabled for button and switch ([31ccb4a](https://github.com/ing-bank/lion/commit/31ccb4a10f6b14e93ddaca825d5e6bf2db8dd1ee)) | ||
# [0.10.0](https://github.com/ing-bank/lion/compare/@lion/switch@0.9.1...@lion/switch@0.10.0) (2020-05-29) | ||
### Features | ||
* merge field/validate/choice-input/form-group into @lion/form-core ([6170374](https://github.com/ing-bank/lion/commit/6170374ee8c058cb95fff79b4953b0535219e9b4)) | ||
* use markdown javascript (mdjs) for documentation ([bcd074d](https://github.com/ing-bank/lion/commit/bcd074d1fbce8754d428538df723ba402603e2c8)) | ||
- merge field/validate/choice-input/form-group into @lion/form-core ([6170374](https://github.com/ing-bank/lion/commit/6170374ee8c058cb95fff79b4953b0535219e9b4)) | ||
- use markdown javascript (mdjs) for documentation ([bcd074d](https://github.com/ing-bank/lion/commit/bcd074d1fbce8754d428538df723ba402603e2c8)) | ||
## [0.9.1](https://github.com/ing-bank/lion/compare/@lion/switch@0.9.0...@lion/switch@0.9.1) (2020-05-27) | ||
@@ -168,28 +114,14 @@ | ||
# [0.9.0](https://github.com/ing-bank/lion/compare/@lion/switch@0.8.2...@lion/switch@0.9.0) (2020-05-18) | ||
### Features | ||
* use singleton manager to support nested npm installations ([e2eb0e0](https://github.com/ing-bank/lion/commit/e2eb0e0077b9efed9382701461753778f63cad48)) | ||
- use singleton manager to support nested npm installations ([e2eb0e0](https://github.com/ing-bank/lion/commit/e2eb0e0077b9efed9382701461753778f63cad48)) | ||
## [0.8.2](https://github.com/ing-bank/lion/compare/@lion/switch@0.8.1...@lion/switch@0.8.2) (2020-04-29) | ||
### Bug Fixes | ||
* add display:none for hidden ([#692](https://github.com/ing-bank/lion/issues/692)) ([9731771](https://github.com/ing-bank/lion/commit/9731771c23a5ed8661558e62cb5e34b62cc2b8b7)) | ||
- add display:none for hidden ([#692](https://github.com/ing-bank/lion/issues/692)) ([9731771](https://github.com/ing-bank/lion/commit/9731771c23a5ed8661558e62cb5e34b62cc2b8b7)) | ||
## [0.8.1](https://github.com/ing-bank/lion/compare/@lion/switch@0.8.0...@lion/switch@0.8.1) (2020-04-02) | ||
@@ -199,17 +131,8 @@ | ||
# [0.8.0](https://github.com/ing-bank/lion/compare/@lion/switch@0.7.2...@lion/switch@0.8.0) (2020-03-25) | ||
### Features | ||
* update to stable @open-wc/scoped-elements ([10bac56](https://github.com/ing-bank/lion/commit/10bac5672b406d3f08a89a795ee295f5028ca6d0)) | ||
- update to stable @open-wc/scoped-elements ([10bac56](https://github.com/ing-bank/lion/commit/10bac5672b406d3f08a89a795ee295f5028ca6d0)) | ||
## [0.7.2](https://github.com/ing-bank/lion/compare/@lion/switch@0.7.1...@lion/switch@0.7.2) (2020-03-19) | ||
@@ -219,6 +142,2 @@ | ||
## [0.7.1](https://github.com/ing-bank/lion/compare/@lion/switch@0.7.0...@lion/switch@0.7.1) (2020-03-12) | ||
@@ -228,28 +147,14 @@ | ||
# [0.7.0](https://github.com/ing-bank/lion/compare/@lion/switch@0.6.3...@lion/switch@0.7.0) (2020-03-05) | ||
### Features | ||
* use Scoped Elements ([15b4a5e](https://github.com/ing-bank/lion/commit/15b4a5ebb388e158f6dc2529954ba6a23f325eb3)) | ||
- use Scoped Elements ([15b4a5e](https://github.com/ing-bank/lion/commit/15b4a5ebb388e158f6dc2529954ba6a23f325eb3)) | ||
## [0.6.3](https://github.com/ing-bank/lion/compare/@lion/switch@0.6.2...@lion/switch@0.6.3) (2020-03-05) | ||
### Bug Fixes | ||
* **switch:** remove old todo ([a242aca](https://github.com/ing-bank/lion/commit/a242aca7318c07e8358dee22c6d307dea6daa4bb)) | ||
- **switch:** remove old todo ([a242aca](https://github.com/ing-bank/lion/commit/a242aca7318c07e8358dee22c6d307dea6daa4bb)) | ||
## [0.6.2](https://github.com/ing-bank/lion/compare/@lion/switch@0.6.1...@lion/switch@0.6.2) (2020-03-04) | ||
@@ -259,28 +164,14 @@ | ||
## [0.6.1](https://github.com/ing-bank/lion/compare/@lion/switch@0.6.0...@lion/switch@0.6.1) (2020-03-02) | ||
### Bug Fixes | ||
* normalize subclasser apis ([ce0630f](https://github.com/ing-bank/lion/commit/ce0630f32b2206813e5cfd2c7842b2faa5141591)) | ||
- normalize subclasser apis ([ce0630f](https://github.com/ing-bank/lion/commit/ce0630f32b2206813e5cfd2c7842b2faa5141591)) | ||
# [0.6.0](https://github.com/ing-bank/lion/compare/@lion/switch@0.5.16...@lion/switch@0.6.0) (2020-03-01) | ||
### Features | ||
* **validate:** use static validatorName instead of instance name ([#600](https://github.com/ing-bank/lion/issues/600)) ([7c45dd6](https://github.com/ing-bank/lion/commit/7c45dd683984e88e3216fba9fcae1b6dc73835b2)) | ||
- **validate:** use static validatorName instead of instance name ([#600](https://github.com/ing-bank/lion/issues/600)) ([7c45dd6](https://github.com/ing-bank/lion/commit/7c45dd683984e88e3216fba9fcae1b6dc73835b2)) | ||
## [0.5.16](https://github.com/ing-bank/lion/compare/@lion/switch@0.5.15...@lion/switch@0.5.16) (2020-02-26) | ||
@@ -290,6 +181,2 @@ | ||
## [0.5.15](https://github.com/ing-bank/lion/compare/@lion/switch@0.5.14...@lion/switch@0.5.15) (2020-02-20) | ||
@@ -299,17 +186,8 @@ | ||
## [0.5.14](https://github.com/ing-bank/lion/compare/@lion/switch@0.5.13...@lion/switch@0.5.14) (2020-02-19) | ||
### Bug Fixes | ||
* reduce storybook chunck sizes for more performance ([9fc5606](https://github.com/ing-bank/lion/commit/9fc560605f5dcf6e9abcf8d58079c59f12750046)) | ||
- reduce storybook chunck sizes for more performance ([9fc5606](https://github.com/ing-bank/lion/commit/9fc560605f5dcf6e9abcf8d58079c59f12750046)) | ||
## [0.5.13](https://github.com/ing-bank/lion/compare/@lion/switch@0.5.12...@lion/switch@0.5.13) (2020-02-10) | ||
@@ -319,6 +197,2 @@ | ||
## [0.5.12](https://github.com/ing-bank/lion/compare/@lion/switch@0.5.11...@lion/switch@0.5.12) (2020-02-06) | ||
@@ -328,6 +202,2 @@ | ||
## [0.5.11](https://github.com/ing-bank/lion/compare/@lion/switch@0.5.10...@lion/switch@0.5.11) (2020-02-06) | ||
@@ -337,6 +207,2 @@ | ||
## [0.5.10](https://github.com/ing-bank/lion/compare/@lion/switch@0.5.9...@lion/switch@0.5.10) (2020-02-06) | ||
@@ -346,6 +212,2 @@ | ||
## [0.5.9](https://github.com/ing-bank/lion/compare/@lion/switch@0.5.8...@lion/switch@0.5.9) (2020-02-05) | ||
@@ -355,6 +217,2 @@ | ||
## [0.5.8](https://github.com/ing-bank/lion/compare/@lion/switch@0.5.7...@lion/switch@0.5.8) (2020-02-05) | ||
@@ -364,6 +222,2 @@ | ||
## [0.5.7](https://github.com/ing-bank/lion/compare/@lion/switch@0.5.6...@lion/switch@0.5.7) (2020-02-03) | ||
@@ -373,17 +227,8 @@ | ||
## [0.5.6](https://github.com/ing-bank/lion/compare/@lion/switch@0.5.5...@lion/switch@0.5.6) (2020-01-30) | ||
### Bug Fixes | ||
* remove unused (dev)dependency on lion-button ([41f5af7](https://github.com/ing-bank/lion/commit/41f5af71cae2bc6b5ee979a5ba83301d14592a2c)) | ||
- remove unused (dev)dependency on lion-button ([41f5af7](https://github.com/ing-bank/lion/commit/41f5af71cae2bc6b5ee979a5ba83301d14592a2c)) | ||
## [0.5.5](https://github.com/ing-bank/lion/compare/@lion/switch@0.5.4...@lion/switch@0.5.5) (2020-01-30) | ||
@@ -393,6 +238,2 @@ | ||
## [0.5.4](https://github.com/ing-bank/lion/compare/@lion/switch@0.5.3...@lion/switch@0.5.4) (2020-01-23) | ||
@@ -402,6 +243,2 @@ | ||
## [0.5.3](https://github.com/ing-bank/lion/compare/@lion/switch@0.5.2...@lion/switch@0.5.3) (2020-01-23) | ||
@@ -411,6 +248,2 @@ | ||
## [0.5.2](https://github.com/ing-bank/lion/compare/@lion/switch@0.5.1...@lion/switch@0.5.2) (2020-01-20) | ||
@@ -420,28 +253,14 @@ | ||
## [0.5.1](https://github.com/ing-bank/lion/compare/@lion/switch@0.5.0...@lion/switch@0.5.1) (2020-01-17) | ||
### Bug Fixes | ||
* update storybook and use main.js ([e61e0b9](https://github.com/ing-bank/lion/commit/e61e0b938ff72cc18cc0b3aa1560f2cece0c9fe6)) | ||
- update storybook and use main.js ([e61e0b9](https://github.com/ing-bank/lion/commit/e61e0b938ff72cc18cc0b3aa1560f2cece0c9fe6)) | ||
# [0.5.0](https://github.com/ing-bank/lion/compare/@lion/switch@0.4.2...@lion/switch@0.5.0) (2020-01-13) | ||
### Features | ||
* improved storybook demos ([89b835a](https://github.com/ing-bank/lion/commit/89b835a79998c45a28093de01f69216c35009a40)) | ||
- improved storybook demos ([89b835a](https://github.com/ing-bank/lion/commit/89b835a79998c45a28093de01f69216c35009a40)) | ||
## [0.4.2](https://github.com/ing-bank/lion/compare/@lion/switch@0.4.1...@lion/switch@0.4.2) (2020-01-08) | ||
@@ -451,6 +270,2 @@ | ||
## [0.4.1](https://github.com/ing-bank/lion/compare/@lion/switch@0.4.0...@lion/switch@0.4.1) (2019-12-16) | ||
@@ -460,17 +275,8 @@ | ||
# [0.4.0](https://github.com/ing-bank/lion/compare/@lion/switch@0.3.13...@lion/switch@0.4.0) (2019-12-13) | ||
### Features | ||
* **field:** add wrappers to allow label left of input ([5413ad1](https://github.com/ing-bank/lion/commit/5413ad130fac76235609ea735aea6c41467f1b22)) | ||
- **field:** add wrappers to allow label left of input ([5413ad1](https://github.com/ing-bank/lion/commit/5413ad130fac76235609ea735aea6c41467f1b22)) | ||
## [0.3.13](https://github.com/ing-bank/lion/compare/@lion/switch@0.3.12...@lion/switch@0.3.13) (2019-12-11) | ||
@@ -480,6 +286,2 @@ | ||
## [0.3.12](https://github.com/ing-bank/lion/compare/@lion/switch@0.3.11...@lion/switch@0.3.12) (2019-12-06) | ||
@@ -489,6 +291,2 @@ | ||
## [0.3.11](https://github.com/ing-bank/lion/compare/@lion/switch@0.3.10...@lion/switch@0.3.11) (2019-12-04) | ||
@@ -498,6 +296,2 @@ | ||
## [0.3.10](https://github.com/ing-bank/lion/compare/@lion/switch@0.3.9...@lion/switch@0.3.10) (2019-12-04) | ||
@@ -507,28 +301,14 @@ | ||
## [0.3.9](https://github.com/ing-bank/lion/compare/@lion/switch@0.3.8...@lion/switch@0.3.9) (2019-12-03) | ||
### Bug Fixes | ||
* let lerna publish fixed versions ([bc7448c](https://github.com/ing-bank/lion/commit/bc7448c694deb3c05fd3d083a9acb5365b26b7ab)) | ||
- let lerna publish fixed versions ([bc7448c](https://github.com/ing-bank/lion/commit/bc7448c694deb3c05fd3d083a9acb5365b26b7ab)) | ||
## [0.3.8](https://github.com/ing-bank/lion/compare/@lion/switch@0.3.7...@lion/switch@0.3.8) (2019-12-02) | ||
### Bug Fixes | ||
* use strict versions to get correct deps on older versions ([8645c13](https://github.com/ing-bank/lion/commit/8645c13b1d77e488713f2e5e0e4e00c4d30ea1ee)) | ||
- use strict versions to get correct deps on older versions ([8645c13](https://github.com/ing-bank/lion/commit/8645c13b1d77e488713f2e5e0e4e00c4d30ea1ee)) | ||
## [0.3.7](https://github.com/ing-bank/lion/compare/@lion/switch@0.3.6...@lion/switch@0.3.7) (2019-12-01) | ||
@@ -538,6 +318,2 @@ | ||
## [0.3.6](https://github.com/ing-bank/lion/compare/@lion/switch@0.3.5...@lion/switch@0.3.6) (2019-11-28) | ||
@@ -547,6 +323,2 @@ | ||
## [0.3.5](https://github.com/ing-bank/lion/compare/@lion/switch@0.3.4...@lion/switch@0.3.5) (2019-11-27) | ||
@@ -556,6 +328,2 @@ | ||
## [0.3.4](https://github.com/ing-bank/lion/compare/@lion/switch@0.3.3...@lion/switch@0.3.4) (2019-11-27) | ||
@@ -565,6 +333,2 @@ | ||
## [0.3.3](https://github.com/ing-bank/lion/compare/@lion/switch@0.3.2...@lion/switch@0.3.3) (2019-11-26) | ||
@@ -574,6 +338,2 @@ | ||
## [0.3.2](https://github.com/ing-bank/lion/compare/@lion/switch@0.3.1...@lion/switch@0.3.2) (2019-11-22) | ||
@@ -583,6 +343,2 @@ | ||
## [0.3.1](https://github.com/ing-bank/lion/compare/@lion/switch@0.3.0...@lion/switch@0.3.1) (2019-11-19) | ||
@@ -592,44 +348,24 @@ | ||
# [0.3.0](https://github.com/ing-bank/lion/compare/@lion/switch@0.2.1...@lion/switch@0.3.0) (2019-11-18) | ||
### Features | ||
* finalize validation and adopt it everywhere ([396deb2](https://github.com/ing-bank/lion/commit/396deb2e3b4243f102a5c98e9b0518fa0f31a6b1)) | ||
- finalize validation and adopt it everywhere ([396deb2](https://github.com/ing-bank/lion/commit/396deb2e3b4243f102a5c98e9b0518fa0f31a6b1)) | ||
## [0.2.1](https://github.com/ing-bank/lion/compare/@lion/switch@0.2.0...@lion/switch@0.2.1) (2019-11-15) | ||
### Bug Fixes | ||
* refactor slot selection ([5999ea9](https://github.com/ing-bank/lion/commit/5999ea956967b449f3f04935c7facb19e2889dc9)) | ||
- refactor slot selection ([5999ea9](https://github.com/ing-bank/lion/commit/5999ea956967b449f3f04935c7facb19e2889dc9)) | ||
# [0.2.0](https://github.com/ing-bank/lion/compare/@lion/switch@0.1.7...@lion/switch@0.2.0) (2019-11-13) | ||
### Bug Fixes | ||
* **switch:** make switch more accessible ([83f9564](https://github.com/ing-bank/lion/commit/83f9564ae0c7f6f6ed552a63efa268dbe4ff4ec5)) | ||
- **switch:** make switch more accessible ([83f9564](https://github.com/ing-bank/lion/commit/83f9564ae0c7f6f6ed552a63efa268dbe4ff4ec5)) | ||
### Features | ||
* remove all deprecations from lion ([66d3d39](https://github.com/ing-bank/lion/commit/66d3d390aebeaa61b6effdea7d5f7eea0e89c894)) | ||
- remove all deprecations from lion ([66d3d39](https://github.com/ing-bank/lion/commit/66d3d390aebeaa61b6effdea7d5f7eea0e89c894)) | ||
## [0.1.7](https://github.com/ing-bank/lion/compare/@lion/switch@0.1.6...@lion/switch@0.1.7) (2019-11-12) | ||
@@ -639,6 +375,2 @@ | ||
## [0.1.6](https://github.com/ing-bank/lion/compare/@lion/switch@0.1.5...@lion/switch@0.1.6) (2019-11-06) | ||
@@ -648,6 +380,2 @@ | ||
## [0.1.5](https://github.com/ing-bank/lion/compare/@lion/switch@0.1.4...@lion/switch@0.1.5) (2019-11-01) | ||
@@ -657,6 +385,2 @@ | ||
## [0.1.4](https://github.com/ing-bank/lion/compare/@lion/switch@0.1.3...@lion/switch@0.1.4) (2019-10-30) | ||
@@ -666,17 +390,8 @@ | ||
## [0.1.3](https://github.com/ing-bank/lion/compare/@lion/switch@0.1.2...@lion/switch@0.1.3) (2019-10-28) | ||
### Bug Fixes | ||
* **switch:** cross-browser fixes ([cb747d9](https://github.com/ing-bank/lion/commit/cb747d9)) | ||
- **switch:** cross-browser fixes ([cb747d9](https://github.com/ing-bank/lion/commit/cb747d9)) | ||
## [0.1.2](https://github.com/ing-bank/lion/compare/@lion/switch@0.1.1...@lion/switch@0.1.2) (2019-10-25) | ||
@@ -686,22 +401,12 @@ | ||
## [0.1.1](https://github.com/ing-bank/lion/compare/@lion/switch@0.1.0...@lion/switch@0.1.1) (2019-10-24) | ||
### Bug Fixes | ||
* **switch:** render function methods not slots ([40394bc](https://github.com/ing-bank/lion/commit/40394bc)) | ||
- **switch:** render function methods not slots ([40394bc](https://github.com/ing-bank/lion/commit/40394bc)) | ||
# 0.1.0 (2019-10-23) | ||
### Features | ||
* **switch:** component to toggle a property on or off ([8e43602](https://github.com/ing-bank/lion/commit/8e43602)) | ||
- **switch:** component to toggle a property on or off ([8e43602](https://github.com/ing-bank/lion/commit/8e43602)) |
{ | ||
"name": "@lion/switch", | ||
"version": "0.10.16", | ||
"version": "0.10.18", | ||
"description": "A Switch is used for switching a property or feature on and off", | ||
@@ -36,4 +36,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@lion/core": "0.8.0", | ||
"@lion/form-core": "0.3.1" | ||
"@lion/core": "0.9.0", | ||
"@lion/form-core": "0.4.1" | ||
}, | ||
@@ -47,4 +47,3 @@ "keywords": [ | ||
"access": "public" | ||
}, | ||
"gitHead": "0afd2edb79c5c611353b81aaa41d5e134957138b" | ||
} | ||
} |
@@ -64,2 +64,5 @@ import { css, html, ScopedElementsMixin } from '@lion/core'; | ||
); | ||
if (this._labelNode) { | ||
this._labelNode.addEventListener('click', this.__toggleChecked); | ||
} | ||
this._syncButtonSwitch(); | ||
@@ -69,2 +72,8 @@ this.submitted = true; | ||
disconnectedCallback() { | ||
if (this._labelNode) { | ||
this._labelNode.removeEventListener('click', this.__toggleChecked); | ||
} | ||
} | ||
updated(changedProperties) { | ||
@@ -71,0 +80,0 @@ super.updated(changedProperties); |
@@ -10,2 +10,10 @@ import { expect, fixture, html } from '@open-wc/testing'; | ||
it('clicking the label should toggle the checked state', async () => { | ||
const el = await fixture(html`<lion-switch label="Enable Setting"></lion-switch>`); | ||
el._labelNode.click(); | ||
expect(el.checked).to.be.true; | ||
el._labelNode.click(); | ||
expect(el.checked).to.be.false; | ||
}); | ||
it('should sync its "disabled" state to child button', async () => { | ||
@@ -12,0 +20,0 @@ const el = await fixture(html`<lion-switch disabled></lion-switch>`); |
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
379
30873
10
+ Added@lion/core@0.9.0(transitive)
+ Added@lion/form-core@0.4.1(transitive)
+ Added@lion/localize@0.14.0(transitive)
+ Addedsingleton-manager@1.1.2(transitive)
- Removed@lion/core@0.8.0(transitive)
- Removed@lion/form-core@0.3.1(transitive)
- Removed@lion/localize@0.13.1(transitive)
- Removedsingleton-manager@1.1.1(transitive)
Updated@lion/core@0.9.0
Updated@lion/form-core@0.4.1