Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4543

Calendar should respect the constraint while Month changing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Normal
    • 9.6.0
    • 9.0.0
    • Components

    Description

      Steps to Reproduce

      https://zkfiddle.org/sample/qs8b1/1-calendar-constraint-test
      run the fiddle with zk 9.0.0
      click the button on the top right go to next Month.
      click a date which number less then today.(e.g. today is 4/9 than click 5/1~5/8)
      click the button on the top left go back to previous Month.

      also try select past date by keyboard, it should not be selectable.

      Current Result

      the current value(selected date) did not respect the constraint(no past)

      Expected Result

      the current value should respect constraint
      maybe check constraint before the change, if the change will break the constraint then don't do it.

      Debug Information

       

      Workaround

       

      Attachments

        Issue Links

          Activity

            People

              katherinelin katherinelin
              Leon03 Leon03
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: