is there any way to have redux-form ignore dots in a field name?

Viewed 1133

i have a restful api that accepts dotted(path) strings as parameter keys.

for example, i can call this:

/widgets?material.type=iron

so i have a redux-form field like:

<Field name="material.type" component={TextField} label="material type" />

but redux-form interprets the dot in material.type and when passed to my handler ends up as {material: {type: 'iron'}}.

i understand why this is the default behavior, but i was wondering if there is an easy way to thwart it with a property or something such that i can get {'material.type': 'iron'} instead?

1 Answers
Related