Code Monkey home page Code Monkey logo

Comments (3)

LukasTy avatar LukasTy commented on July 16, 2024

Hello @david-ic3
I've explored possible solutions and I do not see an easy way to do it, without overriding a bit too much code. 🙈

Could you provide more information about your use case?
Why do you need only the end date in "readonly" mode?
At first sight, it would seem like a bit of a strange UX behavior.

Maybe having the bigger picture about you need to achieve, we'd be able to come up with a different solution for it. 🤞 🤔

from mui-x.

david-ic3 avatar david-ic3 commented on July 16, 2024

@LukasTy , there is goes :

It's for the end users to select a range of dates with a fixed en date. The end date is decided by the data used.

We still want to have the nice look of the Range Calendar without the possibility to change the end date.

from mui-x.

LukasTy avatar LukasTy commented on July 16, 2024

@david-ic3 Thank you for confirming your use case. 👍
What do you think about going for a custom field implementation, where you would not pass the event listeners to the end field to avoid having the option of adjusting the value through that input?
Could such a solution be enough to cover your use case?
P.S. You could also couple it with controlling the rangePosition to enhance your desired behavior.

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.