We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a59794a commit 9b7e85bCopy full SHA for 9b7e85b
src/dip-switch-8-element.ts
@@ -32,6 +32,7 @@ export class DipSwitch8Element extends LitElement {
32
*/
33
private toggleSwitch(index: number) {
34
this.values[index] = this.values[index] ? 0 : 1;
35
+ this.dispatchEvent(new InputEvent('switch-change', { detail: index }));
36
this.requestUpdate(); // force lit to render again
37
}
38
0 commit comments