invoke click on checkbox

This commit is contained in:
Kyle Spearrin 2018-03-09 13:01:49 -05:00
parent f45f511fcd
commit 74db4cc8b4
2 changed files with 2 additions and 2 deletions

2
jslib

@ -1 +1 @@
Subproject commit 1f2cf2bcdfddc68a6d9ee0ed732d00c8bec65ad4 Subproject commit a3beb04f7e09d548bc5223a702f76b9f4e8a4991

View File

@ -39,7 +39,7 @@ export class BoxRowDirective implements OnInit {
if (formEl.tagName.toLowerCase() === 'input') { if (formEl.tagName.toLowerCase() === 'input') {
const inputEl = (formEl as HTMLInputElement); const inputEl = (formEl as HTMLInputElement);
if (inputEl.type != null && inputEl.type.toLowerCase() === 'checkbox') { if (inputEl.type != null && inputEl.type.toLowerCase() === 'checkbox') {
inputEl.checked = !inputEl.checked; inputEl.click();
return; return;
} }
} }