kartik-v/yii2-editable

Kartik Editable Checkbox does not show default value as checked

gb5256 opened this issue · 1 comments

Hi,

I am using Kartik/Editable of latest version. Implemented a checkbox popup which works, but it does not show the default value as checked/unchecked. Example:

echo Editable::widget([
'name' => 'test',
'value' => 1,
'asPopover' => false,
'inputType'=>Editable::INPUT_CHECKBOX,
]);

This will show a popover where the checkbox is not checked at all, but it should be as value = 1. According to Kartiks documentation, the value should be an integer, not boolean.

Am I missing something? Or is this by design?


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.