mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 01:25:36 -05:00
* Fix checkbox change event not firing * Add comment
This commit is contained in:
@@ -48,6 +48,9 @@ export class Checkbox extends Widget {
|
||||
this.onkeydown(this._el, e => {
|
||||
if (e.equals(KeyCode.Enter)) {
|
||||
this.checked = !this.checked;
|
||||
// Manually fire the event since we stop the event propagation which means
|
||||
// the onchange event won't fire.
|
||||
this._onChange.fire(this.checked);
|
||||
e.stopPropagation();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user