Update Html.php
fix
This commit is contained in:
parent
bed1f7afbf
commit
659d3d7b4b
@ -284,7 +284,7 @@ class Html
|
||||
$inputType = $attributes->getNamedItem('type')->value;
|
||||
switch ($inputType) {
|
||||
case 'checkbox':
|
||||
$checked = ($checked = $attributes->getNamedItem('checked')) && $checked->value === "true" ? true : false;
|
||||
$checked = ($checked = $attributes->getNamedItem('checked')) && $checked->value === 'true' ? true : false;
|
||||
$textrun = $element->addTextRun($styles['paragraph']);
|
||||
$textrun->addFormField('checkbox')->setValue($checked);
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user