Fix space bar shortcut to dselect a radio input

This commit is contained in:
yflory
2019-11-22 16:01:32 +01:00
parent 65585f6ce8
commit be7b184d97

View File

@@ -1007,6 +1007,7 @@ define([
if (e.which === 32) {
e.stopPropagation();
e.preventDefault();
if ($(input).is(':checked')) { return; }
$(input).prop('checked', !$(input).is(':checked'));
$(input).change();
}