-
Bug
-
Resolution: Won't Fix
-
Critical
-
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