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

Calendar should respect the constraint while Month changing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 9.0.0
    • Fix Version/s: 9.6.0
    • Component/s: Components
    • Labels:

      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

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

                Dates

                Created:
                Updated:
                Resolved: