Trigger change event when using keyboard shortcut on custom checkbox

This commit is contained in:
yflory
2018-04-17 18:48:06 +02:00
parent 24dfaf766d
commit e21e9b9d9f
2 changed files with 11 additions and 0 deletions

View File

@@ -666,6 +666,7 @@ define([
e.stopPropagation(); e.stopPropagation();
e.preventDefault(); e.preventDefault();
$(input).prop('checked', !$(input).is(':checked')); $(input).prop('checked', !$(input).is(':checked'));
$(input).change();
} }
}); });

View File

@@ -52,6 +52,16 @@
margin-bottom: 0; margin-bottom: 0;
} }
} }
label.noTitle {
display: inline-flex;
vertical-align: top;
& ~ .fa {
line-height: 24px;
height: 24px;
vertical-align: top;
margin-left: 10px;
}
}
margin-bottom: 20px; margin-bottom: 20px;
} }
[type="text"], button { [type="text"], button {