Skip to content

prevent-min-max-navigation not working with max-date="null" and min-date="null" in combination #951

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
NicoHof opened this issue Jul 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@NicoHof
Copy link

NicoHof commented Jul 24, 2024

Describe the bug
The arrow navigation is not longer working once there are null values provided for both min-date and max-date (and prevent-min-max-navigation is enabled)

If one or both of them are not null everything works as expected.
When both are null (which is according to the docs the default value for those props) the navigation does not react to user input at all.

  1. The buttons are not visually disabled. They appear clickable but nothing happens
  2. when min and max are null I think the intended behaviour is that there are no limitations (month and year change work, too)
  3. this can be workarounded like :prevent-min-max-navigation="!!(minDate || maxDate)" but should not be required IMO.

To Reproduce
https://codesandbox.io/p/sandbox/vue3-datepicker-min-max-issue-fms5nn

  • use the checkbox above to toggle the behaviour

Expected behavior
prevent-min-max-navigation should behave the same in this case like its: ":prevent-min-max-navigation="false"

Desktop & mobile (please complete the following information):

  • Library version 9.0.1
@NicoHof NicoHof added awaiting triage The issue is not reviewed by the maintainers bug Something isn't working labels Jul 24, 2024
Jasenkoo added a commit that referenced this issue Aug 4, 2024
@Jasenkoo Jasenkoo removed the awaiting triage The issue is not reviewed by the maintainers label Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants