Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-33940

Double binding triggers when visual component is unlinked from parent

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Apache Flex 4.11.0
    • Fix Version/s: None
    • Component/s: Data Binding
    • Labels:
    • Environment:
      Windows 8, AIR 3.9

      Description

      Steps to reproduce:
      1. Import, compile and run the attached project.
      2. Press the button

      Actual behaviour: A custom error is thrown, showing that the setter has been called.
      Desired behaviour: The setter is not called, and the custom error is not thrown.

      Notes:

      • "this.testCheckBox = null" triggers the two-way binding and calls the setter with 'false', although the checkbox was selected before it was removed from stage.
      • in our application these bindings trigger wrong values to get set in TOs, which sometimes translates into wrong values in the database. And this happens when we're clearing view references to each other and to their children, which should be independent of data linkages.

        Attachments

        1. _BindingUnliked.fxp
          947 kB
          Mihai Chira

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              evolverine Mihai Chira
            • Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: