Common selector for non-traditional checkbox inputs

This commit is contained in:
narcolepticinsomniac 2017-11-27 23:10:32 -05:00 committed by GitHub
parent 1f0d6fb4e9
commit c2d68612ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,7 +105,7 @@ function configDialog(style) {
break;
case 'checkbox':
va.input = $element({tag: 'input', type: 'checkbox'});
va.input = $element({tag: 'input', type: 'checkbox', className: 'slider'});
va.input.onchange = () => {
va.dirty = true;
va.value = String(Number(va.input.checked));