Fix space bar shortcut to dselect a radio input
This commit is contained in:
@@ -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