material-components / material-components/material-components-android

[dateRangePicker] dynamic DateValidator updates.

Open
#2,286 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request Good First Issue Widget: DatePicker
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

Use case:
As a user I want to be able to select data range (**from-to**) limited in 31 days for example. _(range limit should be configurable)_

- By opening a calendar and selecting a date **FROM** the Calendar should disable all dates for selecting **TO** according to range limits.
- By selecting **TO** date Calendar should become again free for ReSelecting any **FROM** date.
- Future from today should be disabled in any cases.

[stackoverflow](https://stackoverflow.com/questions/68098261/how-to-update-compositedatevalidator-and-reset-calendarconstraints-to-already-op)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the dateRangePicker behavior described in the issue and review the linked Stack Overflow discussion for context on updating date validation and calendar constraints. Done means supporting a configurable maximum FROM-to range, disabling invalid TO dates after FROM selection, restoring FROM selection after TO selection, and disabling future dates.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.