Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Name attribute can't be passed to the checkbox component #638

Closed
dylanmichaelryan opened this issue Nov 9, 2024 · 1 comment
Closed

Comments

@dylanmichaelryan
Copy link

Hi, it's not possible to pass the name attribute to <flux:checkbox />. I am currently converting my application to fully use FluxUI, and initially, I used Laravel Jetstream. Their registration flow uses non-Livewire pages, where requests are sent through POST, and it requires you to have name attributes on each input, including checkboxes. However, when converting the checkbox to the FluxUI one, it doesn't work anymore, and you don't see this property in the request. Also, you can't see the name attribute in developer tools.

Screenshot of dev tools:
Image

Code example:

<flux:checkbox
    required
    name="accepts_terms_and_conditions"
    id="accepts_terms_and_conditions"
    label="I agree to the privacy policy and terms of use."
/>
@dylanmichaelryan
Copy link
Author

Sorry, this seems to be a duplicate of #341.

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

No branches or pull requests

1 participant