How to bind to field values dynamically with Svelte 5 changes #208
Unanswered
sumit-fincog
asked this question in
Q&A
Replies: 1 comment
-
The following seems to work
|
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
-
I'm trying to implement a Custom Email Input (validated), as part of migrating an app to Svelte 5, like the following
I'm not able to figure out how to get the binding of the input control's value to the form working. A simple bind:value doesn't work with the Field snippet value prop (I think by design since snippet params are readonly).
I had this working ealier through
This uses the formFieldProxy from SuperForms to bind with the corresponding form field, but that doesn't work through the wrapped FsSuperForm type
I suspect there is a better way to achieve this. Any and all advice is welcome.
Beta Was this translation helpful? Give feedback.
All reactions