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

Load binding fire on unrelated notify

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: 8.0.2, 8.0.3
    • Fix Version/s: 8.5.1
    • Component/s: None
    • Security Level: Jean
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.5.1 R1

      Description

      Steps to Reproduce

      http://zkfiddle.org/sample/140ct03/31-Load-binding-fire-on-unrelated-notify
      run fiddle
      Open dev. tools / network

      Actual Result

      Under "ZK pizza", click on "Menu", then "FAQ"
      This cause the children="@load()" binding to trigger and recreate the navitems under ZK pizza
      The zkau request / response contains:

      ['zkmax.nav.Navitem','kZIQe',{label:'About Us'},{},[]]],[
      ['zkmax.nav.Navitem','kZIQf',{label:'Menu'},{},[]]],[
      ['zkmax.nav.Navitem','kZIQg',{label:'FAQ'},{},[]]],[
      ['zkmax.nav.Navitem','kZIQh',{label:'Press',selected:true},{},[]]]]],["setAttr",[{$u:'kZIQ2'},"selectedItem",{$u:'kZIQh'}]]],"rid":3}
      

      Expected Result

      In "customers" click on "active members" then "inactive members"
      the zkau does not contain navitems (no navitems created)

      Debug Info

      It seem that the load binding containing self.someProperty cause this unwanted component recreated behavior

      Root Cause

      Workaround

      Using @init instead of @load

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              DevChu DevChu
              Reporter:
              MDuchemin MDuchemin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 7 hours, 30 minutes
                  1d 7h 30m