~kyoto-framework/kyoto-framework#19: 
Type system problems while using FormSubmit

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?"

Status
REPORTED
Submitter
~kyoto-framework
Assigned to
No-one
Submitted
2 years ago
Updated
2 years ago
Labels
bug kyoto