You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version
"mobx-react": "5.4.3",
"mobx-react-form": "1.35.1",
Example 1
constfields={testField: ['',''],};constform=newMobxReactForm({ fields });console.log('test form values',form.values());//returns {testField:[]}
Example 2
constfields={testField: ['','1',''],};constform=newMobxReactForm({ fields });console.log('test form values',form.values());//returns {testField:['1']}
I was expecting Example 1 would return {testField: ['', '']} and Example 2 return {testField: ['', '1', '']}, but it seems like empty strings get trimmed out when the values function is called
how can I keep the empty strings?
The text was updated successfully, but these errors were encountered:
Version
"mobx-react": "5.4.3",
"mobx-react-form": "1.35.1",
Example 1
Example 2
I was expecting Example 1 would return
{testField: ['', '']}
and Example 2 return{testField: ['', '1', '']}
, but it seems like empty strings get trimmed out when the values function is calledhow can I keep the empty strings?
The text was updated successfully, but these errors were encountered: