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

flux:date-picker missing value in form submit #1221

Closed
3 tasks done
Kuzuto opened this issue Feb 28, 2025 · 1 comment
Closed
3 tasks done

flux:date-picker missing value in form submit #1221

Kuzuto opened this issue Feb 28, 2025 · 1 comment

Comments

@Kuzuto
Copy link

Kuzuto commented Feb 28, 2025

Flux version

v2.0.3

Livewire version

v3.6.0

Tailwind version

v4.0.7

Browser and Operating System

Chrome on MacOS

What is the problem?

When I have a submit form the value of the flux:date-picker is not passed in the submit action:
<flux:date-picker name="start_date" :value="now()->format('Y-m-d')" />

Using flux:input works fine.

Data received in the Request:
Illuminate\Http\Request {50 ▼
InputBag
{51 ▼
#parameters: array:2 [▼
"_token" => "zdPooQ6yKWsel64KH4OwWguwcS6ovn0NgGkgPqiA"
"date_input" => "2025-02-28"
]
}

Code snippets

 <form method="post" action="{{ route("place.order") }}">
   <flux:input type="date" name="date_input" :value="now()->format('Y-m-d')" />
   <flux:date-picker size="sm" name="date_pick" :value="now()->format('Y-m-d')" />
   <flux:button type="submit" class="w-full">Place Order</flux:button>
</form>

How do you expect it to work?

Expecting the value of date_pick is passed in the Submit form.

Please confirm (incomplete submissions will not be addressed)

  • I have provided easy and step-by-step instructions to reproduce the bug.
  • I have provided code samples as text and NOT images.
  • I understand my bug report will be closed if I haven't met the criteria above.
@Kuzuto Kuzuto changed the title flux:date-picker missing "name" in form submit flux:date-picker missing value in form submit Feb 28, 2025
@joshhanley
Copy link
Member

@Kuzuto currently Flux doesn't support native form submissions, hence why this won't be working. We currently have an open issue about this, see #341, which we have been working on a solution for. As this is a duplicate, I'm going to close this issue. Please add your support to #341. Thanks!

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

2 participants