laravel-form-components icon indicating copy to clipboard operation
laravel-form-components copied to clipboard

Checkbox Shows which are checked and then disappears

Open abbasmashaddy72 opened this issue 1 year ago • 3 comments

Checked Box For Loop Code

`

@foreach ($permissions as $key => $value) @endforeach
`

Please Check the below Attachment for the clear look on issue Peek 2022-07-14 13-34

Thanks in Advance..

abbasmashaddy72 avatar Jul 14 '22 08:07 abbasmashaddy72

@pascalbaljet @DionPotkamp

Please Reply How can I Fix it

abbasmashaddy72 avatar Jul 22 '22 11:07 abbasmashaddy72

I think you are missing some code, I see a few empty lines.

And what is the problem? You ask for checkboxes automatically checked, and that is what i see in de gif.

DionPotkamp avatar Jul 22 '22 11:07 DionPotkamp

@foreach ($permissions as $key => $value) <x-form-checkbox name="permissions.{{ $key }}" label="{{ $value }}" value="{{ $key }}" :checked="in_array($key, $checked)" /> @endforeach

This is the loop I am Using, How Can I fix it...

abbasmashaddy72 avatar Jul 29 '22 08:07 abbasmashaddy72