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 5e236eb commit 12de744Copy full SHA for 12de744
src/client/scripts/rb-checkbox.js
@@ -94,12 +94,13 @@ export class RbCheckbox extends FormControl(RbBase()) {
94
this.setValue(value);
95
await this.validate()
96
}
97
- _onkeypress(value, evt) { // :void
+ async _onkeypress(value, evt) { // :void
98
const keys = ['enter','space'];
99
const key = this.getKey(evt.code);
100
if (keys.indexOf(key) === -1) return;
101
evt.preventDefault(); // prevent space key from moving page down
102
103
+ await this.validate()
104
this.rb.elms.formControl.checked = this.value; // needed for firefox
105
106
0 commit comments