Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Checkbox Shows which are checked and then disappears #93

Open
abbasmashaddy72 opened this issue Jul 14, 2022 · 3 comments
Open

Checkbox Shows which are checked and then disappears #93

abbasmashaddy72 opened this issue Jul 14, 2022 · 3 comments

Comments

@abbasmashaddy72
Copy link

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
Copy link
Author

@pascalbaljet @DionPotkamp

Please Reply How can I Fix it

@DionPotkamp
Copy link
Contributor

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.

@abbasmashaddy72
Copy link
Author

@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...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants