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

Children binding causes load binding to stop firing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 9.6.0
    • 8.0.3
    • Databind 2
    • Security Level: Jimmy
    • None
    • ZK 8.5.2 S1, ZK 8.6.0 S1, ZK 8.6.0 S2

      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

            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, 5 hours
                1d 5h