https://pkg.go.dev/git.sr.ht/~kyoto-framework/kyoto
Set of libraries and tools to create frontends with Go
bug added by ~kyoto-framework on ~kyoto-framework/kyoto-framework
kyoto added by ~kyoto-framework on ~kyoto-framework/kyoto-framework
Ticket created by ~kyoto-framework on ~kyoto-framework/kyoto-framework
Original message:
"Say I have a component with a state containing: Page int and I have a template with:
<form onsubmit="FormSubmit(this,event);"> <input name="Page" type="number" value="1"> </form>
then FormSubmit sends Page as a string, not as a number as I would imagine. I can of course send it as Page2 and in my action convert the string to int and store it as Page, but this seems awkward. Is it possible for FormSubmit to check if an input name exists already within the state, and if so, use the same variable type (like int, bool, string)? Or do you have any other recommendation?"
kyoto added by ~kyoto-framework on ~kyoto-framework/kyoto-framework
bug added by ~kyoto-framework on ~kyoto-framework/kyoto-framework
Ticket created by ~kyoto-framework on ~kyoto-framework/kyoto-framework
If you're calling kyoto.ActionPreload in nested component and state have a field with the same name, it would be loaded (but shouldn't).
Comment by ~kyoto-framework on ~kyoto-framework/kyoto-framework
Implemented with v1.0.13
REPORTED
RESOLVED IMPLEMENTEDComment by ~kyoto-framework on ~kyoto-framework/kyoto-framework
REPORTED
RESOLVED IMPLEMENTEDdocs added by ~kyoto-framework on ~kyoto-framework/kyoto-framework
zen added by ~kyoto-framework on ~kyoto-framework/kyoto-framework