-
Bug
-
Resolution: Fixed
-
Normal
-
8.0.3
-
Security Level: Jimmy
-
None
-
ZK 8.5.2 S1, ZK 8.6.0 S1, ZK 8.6.0 S2
-
None
Steps to Reproduce
http://zkfiddle.org/sample/34qpc86/3-children-binding-fails-with-MVVM-databinding
Run filddle
Click on the link multiple times.
Each click increase the counter
Actual Result
2nd label @load binding stop firing after a few clicks
Expected Result
load binding should fire
Debug Info
This structure was advised as a workaround to switch templates before introducing shadow components
Changes that affect this behavior:
This only happen if the bindings in the first template and the broken component are using a 2nd level field, with the same 1st level field:
vm.firstlevel.secondlevel1
vm.firstlevel.secondlevel2
This doesn't happen if the component inside the first template have a previous sibling
This doesn't happen if the component inside the first template uses init instead of load
This doesn't affect bindings declared before the children binding section
Root Cause
Workaround
Multiple workarounds:
1. use apply instead of children binding
2. add a nodom component before the component in children binding
3. surround the component in children binding with a div