mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
emit on left/right
This commit is contained in:
@@ -123,13 +123,13 @@ export default class SlSwitch extends LitElement {
|
||||
if (event.key === 'ArrowLeft') {
|
||||
event.preventDefault();
|
||||
this.checked = false;
|
||||
// emit(this, 'sl-change');
|
||||
emit(this, 'sl-change');
|
||||
}
|
||||
|
||||
if (event.key === 'ArrowRight') {
|
||||
event.preventDefault();
|
||||
this.checked = true;
|
||||
// emit(this, 'sl-change');
|
||||
emit(this, 'sl-change');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user