Fix space bar shortcut to dselect a radio input
This commit is contained in:
1 parent
65585f6ce8
commit
be7b184d97
1 file changed
+1
@@ -1007,6 +1007,7 @@ define([
|
|||||||
if (e.which === 32) {
|
if (e.which === 32) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
if ($(input).is(':checked')) { return; }
|
||||||
$(input).prop('checked', !$(input).is(':checked'));
|
$(input).prop('checked', !$(input).is(':checked'));
|
||||||
$(input).change();
|
$(input).change();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user