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

datebox constraint works even when datebox is invisible

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 7.0.1
    • Fix Version/s: None
    • Component/s: Components
    • Labels:
    • Environment:

      windows 7, spring

      Description

      I need a conditional constraint and to achieve this I make two dateboxes making one of them invisible depending on fx.id

      <!-edit->
      <datebox id="editDtbx" format="dd/MM/yyyy" readonly="true" disabled="true" visible="@load(not empty fx.id)" value="@bind(fx.date)" />
      <!-create new->
      <datebox id="createDtbx" format="dd/MM/yyyy" readonly="true" visible="@load(empty fx.id)" constraint="no future, after ${vm.someDate}" value="@bind(fx.date)" />

      The strange (buggy) behavior is the following: When the fx.id is not empty (thus only the first datebox should be displayed) I can only see the first datebox as expected but it carries with it the constraint that is given only to the second (invisible) datebox.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            nk10ere nk10ere
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated: