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

[MaterialDatePicker] I'm not able to prevent dismiss when I choose a wrong date interval

Open
#2,839 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

The component cannot prevent auto dismiss when I click on positive button.
I'm not able to override setOnClickListener for the confirm_button.

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 by reproducing the behavior in MaterialDatePicker: choose an invalid date interval and press the positive button. Inspect how confirm_button handles clicks and determine whether the component exposes a supported way to keep the picker open; done means an invalid interval no longer auto-dismisses.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.