Giter VIP home page Giter VIP logo

Comments (6)

adguernier avatar adguernier commented on April 27, 2024 1

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.

nicofrand avatar nicofrand commented on April 27, 2024

I have a similar issue where the data passed to my provider has my disabled field set to undefined.

from react-admin.

Revarh avatar Revarh commented on April 27, 2024

I added a test repo to my original query. Thank you everyone!

from react-admin.

aMahdaoui avatar aMahdaoui commented on April 27, 2024

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.

slax57 avatar slax57 commented on April 27, 2024

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.

slax57 avatar slax57 commented on April 27, 2024

Fixed by #9656

from react-admin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.