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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 9.0.0
    • 8.6.2
    • Databind 2
    • Security Level: Jimmy

      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

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

              Created:
              Updated:
              Resolved:

                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