lilHermit / cakephp-plugins-bootstrap4

3 stars 5 forks source link

Checkbox field has no visible checked state in Layout type Grid #5

Closed lilHermit closed 6 years ago

lilHermit commented 6 years ago

Originally reported by Anonymous


I think there are a bug with checkbox field on layout type grid form.

My current code is :

#!php

<?= $this->Form->create($menu, [
        'type' => 'post',
        'url' => ['controller' => 'menus', 'action' => 'edit', $menu->id],
        'layout' => ['type' => 'grid']
    ]) ?>
<?= $this->Form->control('nom') ?>
<?= $this->Form->control('hook') ?>
<?= $this->Form->control('active') ?>
<?= $this->Form->button($this->Icon->i('save',''), ['class' => 'btn-success pull-right']); ?>   
<?= $this->Form->end(); ?>

And the checkbox field "active" (look attachment figure 1) has no visible checked state. When i click on the label, the square's style has no changing.

If i switch to layout type block or inline for form parameter, the bug is not present.

PS : I use last version 4.0.0.4001


lilHermit commented 6 years ago

Original comment by l (Bitbucket: lilHermit, GitHub: lilHermit)


Released 4.0.0.4002

lilHermit commented 6 years ago

Original comment by l (Bitbucket: lilHermit, GitHub: lilHermit)


Fixed in 632fec8, will close once released

lilHermit commented 6 years ago

Original comment by l (Bitbucket: lilHermit, GitHub: lilHermit)


Confirmed