Giter Site home page Giter Site logo

Comments (5)

rwb196884 avatar rwb196884 commented on June 17, 2024
  return <DatePicker
    value={props.value ?? null}
  />;

Type '{ value: Date | null; }' is missing the following properties from type 'DatePickerProps<Date, Date>': onChange, renderInput

renderinput isn't even fucking documented https://mui.com/x/api/date-pickers/date-picker/.

from mui-x.

LukasTy avatar LukasTy commented on June 17, 2024

Could you confirm which version you are trying to upgrade to?
Is it v5, which would be logical, given that you are on v4? Jumping to v6 can only be done manually.
If it is the v5 you are trying to upgrade to, please refer to its documentation instead of the latest v6.

Given that you are talking about v4, you are probably using the legacy @material-ui/pickers, in such case, please refer to the migration to lab guide first, then change the dependencies to @mui/x-date-pickers to v5.x and follow the migration from lab guide.
At this point, if everything is working fine, you can follow the migration to the v6 guide. 😉

from mui-x.

brencodes avatar brencodes commented on June 17, 2024

Oh man, I am so glad someone else had this issue! I was also mistakenly reading the v6 documentation while trying to do this in v5🤦

This was all I needed, took me an hour to find it haha inputFormat="yyyy/MM/dd"

from mui-x.

flaviendelangle avatar flaviendelangle commented on June 17, 2024

image

You can find the version you are currently visiting on the top left corner of the documentation.
Clicking on the version allows you to jump to another version of the doc.

from mui-x.

github-actions avatar github-actions commented on June 17, 2024

The issue has been inactive for 7 days and has been automatically closed. If you think that it has been incorrectly closed, please reopen it and provide missing information (if any) or continue the last discussion.

from mui-x.

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.