Skip to content

Fix absolute maxDate/minDate restriction in DateInput#1054

Open
lucasn4s wants to merge 2 commits intomainfrom
fix/date-input-max-date-restriction-15556434080978934647
Open

Fix absolute maxDate/minDate restriction in DateInput#1054
lucasn4s wants to merge 2 commits intomainfrom
fix/date-input-max-date-restriction-15556434080978934647

Conversation

@lucasn4s
Copy link
Collaborator

@lucasn4s lucasn4s commented Feb 6, 2026

Fixed the issue where DateInput's maxDate restriction was applied globally across all years. Added year-aware month disabling in MonthSelectorGrid and improved YearSelectorGrid to respect minDate/maxDate.

Fixes #1053


PR created automatically by Jules for task 15556434080978934647 started by @lucasn4s

…obally

The DateInput component was incorrectly disabling months and years based only on the month or year part of maxDate/minDate, ignoring the full date. This prevented users from selecting months after February in years prior to a maxDate of 2026-02-28, for example.

This commit:
- Updates MonthSelectorGrid to accept a year prop and correctly disable months based on the full date range.
- Updates YearSelectorGrid to respect minDate and maxDate props.
- Fixes a typo in MonthSelectorGrid's isMothDisabled function.
- Updates DateInput.vue to pass the necessary props to internal components.
- Updates snapshots for DateInput.spec.js.

Co-authored-by: lucasn4s <17988272+lucasn4s@users.noreply.github.com>
@google-labs-jules
Copy link

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@github-actions github-actions bot added the 🐛 Bug Algo não está funcionando label Feb 6, 2026
@lucasn4s
Copy link
Collaborator Author

lucasn4s commented Feb 6, 2026

É necessário atualizar a versão do projeto no package.json

@google-labs-jules
Copy link

É necessário atualizar a versão do projeto no package.json

Feito! Atualizei a versão do projeto para 3.154.1 no package.json e package-lock.json.

- Updated `package.json` version to `3.154.1`.
- Updated `package-lock.json` via `npm install`.
- Replied to PR feedback regarding version update.

Co-authored-by: lucasn4s <17988272+lucasn4s@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 Bug Algo não está funcionando

Projects

None yet

Development

Successfully merging this pull request may close these issues.

maxDate absoluto independente do ano atual no DateInput

1 participant