Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pickers] Allow to pick a range of Months with Date Range picker #4995

Open
joserodolfofreitas opened this issue May 24, 2022 · 28 comments
Open
Labels
component: pickers This is the name of the generic UI component, not the React module! design This is about UI or UX design, please involve a designer linked in docs The issue is linked in the docs, so completely skew the upvotes new feature New feature or request on hold There is a blocker, we need to wait plan: Pro Impact at least one Pro user

Comments

@joserodolfofreitas
Copy link
Member

joserodolfofreitas commented May 24, 2022

Summary 💡

Sometimes the specific date of the month is not important to the user. In these cases, it'd be interesting to be able to provide a better experience by allowing users to select just the months on the range, like we have with the month view in DatePicker.

This issue was originally requested/suggested on a zendesk ticket: https://mui.zendesk.com/agent/tickets/2854

Examples 🌈

Basic behavior implementation using the date picker:
https://codesandbox.io/s/datepicker-views-year-month-l1wyyv?file=/demo.js

Picture of requested solution:

Screen.Recording.2023-10-16.at.23.06.46.mov
@joserodolfofreitas joserodolfofreitas added new feature New feature or request status: waiting for maintainer These issues haven't been looked at yet by a maintainer plan: Pro Impact at least one Pro user component: DateRangePicker The React component. design: ux waiting for 👍 Waiting for upvotes and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer design: ui labels May 24, 2022
@TheRealCuran

This comment was marked as resolved.

@spiftire

This comment was marked as resolved.

@destegabry

This comment was marked as resolved.

@flaviendelangle flaviendelangle changed the title [DateRangePicker] Month range picker New component: MonthRangePicker Sep 15, 2022
@flaviendelangle flaviendelangle added component: pickers This is the name of the generic UI component, not the React module! and removed component: DateRangePicker The React component. labels Sep 15, 2022
@flaviendelangle flaviendelangle changed the title New component: MonthRangePicker [pickers] New component: MonthRangePicker Oct 17, 2022
@razlani

This comment was marked as resolved.

@istisiki

This comment was marked as resolved.

@razlani
Copy link

razlani commented Nov 25, 2022

:shipit: please! 🎉

I ended up just building from scratch for month/year range selectors - easier than you think assuming you don't need to leverage some of the fab features of this lib

@istisiki
Copy link

I ended up just building from scratch for month/year range selectors - easier than you think assuming you don't need to leverage some of the fab features of this lib

Indeed, we ended up building our own! Would still love it if it was built-in. :)

@spiftire
Copy link
Contributor

If you have implemented a solution maybe you wouldn't mind sharing? @razlani @istisiki

@goldnite

This comment was marked as resolved.

@TheRealCuran
Copy link

@oliviertassinari / @joserodolfofreitas this ticket is still marked as „waiting for 👍“ while having almost a 150 👍 and several „votes with wallet“ already. Is this an oversight or are actually more votes needed?

@joserodolfofreitas
Copy link
Member Author

@TheRealCuran,
No more votes are needed. We've planned to work on it just after the date time range components.

@joserodolfofreitas joserodolfofreitas removed the waiting for 👍 Waiting for upvotes label Jan 16, 2023
@razlani
Copy link

razlani commented Feb 1, 2023

If you have implemented a solution maybe you wouldn't mind sharing? @razlani @istisiki

Would that I could, but for the wrath of my employer.

-Private companies amirite?

@joserodolfofreitas joserodolfofreitas changed the title [pickers] New component: MonthRangePicker [pickers] Allow to pick a range of Months with Date Range picker Feb 13, 2023
@oliviertassinari oliviertassinari added design This is about UI or UX design, please involve a designer and removed design: ux labels Aug 18, 2023
@kinoli

This comment was marked as resolved.

@oliviertassinari

This comment was marked as resolved.

@oliviertassinari oliviertassinari added the linked in docs The issue is linked in the docs, so completely skew the upvotes label Oct 17, 2023
@Akbar1909

This comment was marked as resolved.

@mansurmabo

This comment was marked as resolved.

@bdhcode

This comment was marked as outdated.

@michaelfr

This comment was marked as outdated.

@shipsaw

This comment was marked as outdated.

@LevapVeeskela
Copy link

LevapVeeskela commented Apr 20, 2024

Hello, I have DateRangePicker from @mui/x-date-pickers-pro and I resolved custom calendarHeader with two selects for years and months, but when I click on its, then emit event onClose and modal will close...
I resolved that problem with onOpen, open props and useState, but this is a crutch, and I need use mouseout event for modal as temp a resolve. Can you add support native events mouseout and etc for container modal/content/paper?
image

@LukasTy
Copy link
Member

LukasTy commented Apr 22, 2024

@LevapVeeskela Have you tried using slotProps.popper to bind your events? 🤔

@matheus1519
Copy link

two years later and we don't have a React Month Range Picker from MUI

@david-ic3
Copy link

Looking for this feature, it's a pain when end users have to go 10 years in the past.

@LukasTy , it is more motivating being focused on new features. But please consolidate what you have. Should we be looking for alternative libraries as we certainly do not want to develop this on our own.

Order ID: #19458

@LukasTy
Copy link
Member

LukasTy commented May 30, 2024

@david-ic3 I appreciate you voicing your interest and concern! 🙏
Could you clarify your request?
This issue is about month range picker, but from your comment it seems that the pain point is the lack of year navigation within the Date Range Picker, am I correct? 🤔

@david-ic3
Copy link

©LukasTy thanks for the quick turnaround. You can check the post of @LevapVeeskela

When using the date range picker , try selecting a date that is 30 years in the past from the one selected without using the keyboard :-)

image

@RockPaperGardenHose
Copy link

Since you are already working on this feature, would be nice to have MonthRangeCalendar as well :)

@MatheusCastro99
Copy link

The monthRangePicker / Calendar will be of great help! I will be switching to it as soon as it releases.

@LukasTy LukasTy added the on hold There is a blocker, we need to wait label Nov 12, 2024
@LukasTy
Copy link
Member

LukasTy commented Nov 12, 2024

It depends on firstly implementing #4546.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: pickers This is the name of the generic UI component, not the React module! design This is about UI or UX design, please involve a designer linked in docs The issue is linked in the docs, so completely skew the upvotes new feature New feature or request on hold There is a blocker, we need to wait plan: Pro Impact at least one Pro user
Projects
Status: Next in queue
Development

No branches or pull requests