Giter Site home page Giter Site logo

Comments (4)

Kiarash-Z avatar Kiarash-Z commented on May 18, 2024

@MasoumeAfshar This is the expected behavior. Imagine you want to select a day range for your payments, and you want to see only today's payments. How would you select that(with keeping the functionality for other ranges selection)?

from react-modern-calendar-datepicker.

MasoumeAfshar avatar MasoumeAfshar commented on May 18, 2024

This usage is less likely to occur, Why use Range in these circumstances, to see only today's payments!!
This is not good for booking and at least has the ability to set limits for the "to" date

from react-modern-calendar-datepicker.

Kiarash-Z avatar Kiarash-Z commented on May 18, 2024

@MasoumeAfshar This is actually quite popular! I used it many times in my projects. However, this date picker is quite customizable. You can easily control this behavior by checking value in onChange callback. Just make sure to is not equal with from, if it is, don't update the state and show an error for the user.

from react-modern-calendar-datepicker.

MasoumeAfshar avatar MasoumeAfshar commented on May 18, 2024

thx

from react-modern-calendar-datepicker.

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.