Comments (6)
Thanks for this report, after investigating, I can reproduce and see the error in the console.
It seems this issue in related to #9498.
Until it fixed, you can prevent this error by setting disabled
in InputProps
, such as:
<TextInput source="id" fullWidth InputProps={{ disabled: true }} />
from react-admin.
I have a similar issue where the data passed to my provider has my disabled field set to undefined
.
from react-admin.
I added a test repo to my original query. Thank you everyone!
from react-admin.
Same behavior while trying to update Firebase document :
barecode property received as undefined when TextInput is disabled
FirebaseError: [code=invalid-argument]: Function updateDoc() called with invalid data.
Unsupported field value: undefined (found in field bareCode in document products/cvbz95WZmSZhAT5vHjQl)
from react-admin.
Quick update: I spent half a day trying to figure out what exactly is causing this warning, and how to work around it, but with no luck.
I'm pretty convinced this is due to a state mismanagement in the react-hook-form library, consecutive to the change they recently made in the way the disabled inputs are handled. But I couldn't reproduce it in a RHF only sandbox so far...
Nevertheless, this issue will probably be resolved along when we address issue #9498, which will require some time because we will probably need to implement support for the readOnly
prop on all inputs.
from react-admin.
Fixed by #9656
from react-admin.
Related Issues (20)
- SimpleForm isDirty is always true if ArrayInput is used HOT 4
- [RFC] package ra-data-json-server adaption of consistent getMany HOT 1
- TabbedForm crashes if children is an array of react elements HOT 1
- Security Risk, Default install allows request access to all files. HOT 1
- Can not disable ra.action.clear_input_value in SelectInput HOT 1
- Add a meta prop to react-admin reference components HOT 2
- `TextInput` component not handling events during the initial life cycles HOT 4
- combineDataProviders does not support more than 2 parameters in custom dataProvider methods HOT 1
- `CoreAdminUI` wraps everything in a `<div>` HOT 2
- useWatch on fields with required in edit is not working HOT 1
- The 'QueryClient' type does not have queryCache, mutationCache, defaultOptions, queryDefaults and four other properties of the 'QueryClient' type. HOT 3
- CheckboxGroupInput : disabling some of the checkboxes Feature HOT 3
- Bug / Breaking change without major for useTheme behaviour HOT 5
- Multiple expandable datagrids: expanding a row triggers all datagrids to expand HOT 8
- AutocompleteInput in ReferenceArrayInput with dynamic choices shows empty field on selection HOT 5
- Property "resource" in SortButtonProps not involved HOT 2
- Change title property type in core display components <Edit>, <Show>, <View> HOT 1
- Standalone version of the Store for a dual-store strategy HOT 3
- Unable to clear default value in DateTimeInput component HOT 3
- Documented theme level defaultProps overrides do not work for react admin components HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-admin.