material-components / material-components/material-components-android
[MaterialDatePicker] I'm not able to prevent dismiss when I choose a wrong date interval
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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