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

ZK evaluates an expression of ternary operator "?:" with @MatchMedia

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.6.2
    • Fix Version/s: 9.0.0
    • Component/s: Databind 2
    • Security Level: Jimmy

      Description

      Steps to Reproduce

      1. run attached files
      2. check the badgeText of Dashboard

      Current Result

      it's 0

      Expected Result

      should be larger than 0

      Debug Information

      • the method below causes it
            @MatchMedia("all and (min-width: 958px)")
            @NotifyChange("collapsed")
            public void beWide(){
                collapsed = false;
            }
        

      If you remove this methods, the badgeText is correct.

      Workaround

      • replace @load with @init

        Attachments

          Activity

            People

            • Assignee:
              rudyhuang rudyhuang
              Reporter:
              hawk hawk
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Time Spent - 6 hours Remaining Estimate - 2 hours
                2h
                Logged:
                Time Spent - 6 hours Remaining Estimate - 2 hours
                6h