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

Load binding fire on unrelated notify

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Critical Critical
    • 8.5.1
    • 8.0.2, 8.0.3
    • None
    • Security Level: Jean
    • None
    • ZK 8.5.1 R1
    • None

      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

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

              Created:
              Updated:
              Resolved:

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