wc-catalogue / blaze-elements

Web Component Blaze Elements
https://wc-catalogue.github.io/blaze-elements/
MIT License
10 stars 4 forks source link

feat(toggle): add onChange emit when checked value changed #209

Closed davidrus closed 7 years ago

davidrus commented 7 years ago

affects: @blaze-elements/toggle

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x")

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Other... Please describe:

What is the current behavior? (You can also link to an open issue here) Toggle does not emit onchange event when value changed

What is the new behavior? OnChange was emitted when toggle checked was changed

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[x] No