-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
Values serialize into arrays just fine when they're not nested, but when they are, only the last value is used and serializes as a string:
<input type="text" name="nested[colors]" value="red" />
<input type="text" name="nested[colors]" value="green" checked />
<input type="text" name="nested[colors]" value="blue" checked />Expected Output:
{
nested: {
colors: ["green", "blue"]
}
}Actual Output:
{
nested: {
colors: "blue"
}
}I can work around it if I explicitly add [] to the names, but it seems like it should work without that. Thoughts?
Metadata
Metadata
Assignees
Labels
No labels