Fix absolute maxDate/minDate restriction in DateInput#1054
Fix absolute maxDate/minDate restriction in DateInput#1054
Conversation
…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>
|
👋 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 New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
É 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>
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