react-admin icon indicating copy to clipboard operation
react-admin copied to clipboard

BooleanInput does not work in the nest field

Open datafibers opened this issue 8 years ago • 4 comments

<BooleanInput source="connectorConfig.choose_or_create" label="Choose/Create Topic?" style={{ width: 500 }} />
<BooleanInput source="test_flag" label="Stream Back the Result?" style={{ width: 500 }} />

I test it the value is show correctly in the normal json field. if it is nested, it always shows true

{ "test_flag":"false", "connectorConfig":{"choose_or_create":"false"}} if I change BooleanInput to TextInput, value shows correct

datafibers avatar Dec 21 '17 16:12 datafibers

Can't reproduce either on master or next. Which version of admin-on-rest are you using? Which version of redux-form is installed?

fzaninotto avatar Dec 21 '17 17:12 fzaninotto

This happens in the edit view. for versions "admin-on-rest": "~1.3.2", "aor-dependent-input": "^1.2.0", "aor-language-chinese": "^1.0.3", "aor-language-french": "^1.8.0", "aor-rich-text-input": "^1.0.0", "material-ui": "~0.19.0", "prop-types": "~15.5.7", "react": "~15.5.4", "react-dom": "~15.5.4", "react-redux": "~5.0.4", "react-router-dom": "~4.1.0", "react-tap-event-plugin": "~2.0.1", "redux-form": "~7.0.3", "redux-saga": "~0.15.0"

datafibers avatar Dec 21 '17 17:12 datafibers

Nothing strange here, so it's not a matter of dependency.

Can you try and reproduce a minimal app with that bug, based on a fork of the following CodeSandbox?

https://codesandbox.io/s/ElxGNxBY0

fzaninotto avatar Dec 21 '17 17:12 fzaninotto

No news for some time, closing. Feel free to reopen if needed

djhi avatar Jan 16 '18 15:01 djhi