Using fluent-switch in a form #29841
Unanswered
TimWillebrands
asked this question in
Q&A
Replies: 1 comment
-
I've narrowed it down a bit further, the problem only occurs for the unchecked state. The fluent-switch's value will be added to the form data regardless of whether it is checked or not. This setup using a normal input checkbox works as expected (checked returns a form-value of true, unchecked returns false):
Whilst this (to my mind) identical version with a fluent-switch doesn't work as expected:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm trying to use the webcomponent in combination with asp.net razor pages and htmx. I figured out how to make fluent-select bind to my PageModel but the value for the switch in my form-values is "value" regardless of the switch state, I would expect it to be either true or false. Any ideas on how to use this in a form?
Beta Was this translation helpful? Give feedback.
All reactions