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

DataGridEditor doesn't remove the Event.DEACTIVATE listener on destroyItemEditor()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Apache Flex 4.12.0
    • Fix Version/s: Apache Flex 4.12.1
    • Component/s: Spark: DataGrid
    • Labels:
      None

      Description

      Steps to reproduce:
      1. Import and run attached project.
      2. Set a breakpoint in DataGridEditor.deactivateHandler().
      3. Double click on 'hello' to show the editor.
      4. Click in the grid under 'hello' to remove the editor.
      5. Click on the Remove Grid button.
      6. Click anywhere outside the AIR app to de-focus it.

      Actual result: the breakpoint is triggered, which means that the DataGridEditor is still responding to Event.DEACTIVATE even after the editor was closed, and even after the grid was removed.
      Desired result: DataGridEditor.deactivateHandler() should only be called while an editor is open, as long as the grid itself is still on stage (NB the grid can be removed while the editor is still open, see FLEX-34216 for the problems that causes).

      Expected result: the breakpoint is not triggered.

      Notes:
      -the second line of DataGridEditor.destroyItemEditor() looks like a typo: instead of addEventListener shouldn't it say removeEventListener(...)?

        Attachments

        1. _editorDeactivateHandler.fxp
          10 kB
          Mihai Chira
        2. FLEX-34229.patch
          1 kB
          Mihai Chira

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: