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

The updateComplete event doesn't fire when dataProvider changes are made to a FlexNativeMenu because the updateCompletePendingFlag property is incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Adobe Flex SDK 3.0 (Release)
    • None
    • mx: FlexNativeMenu
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Create a mustella test with the following code (use any dataProvider):

      <TestCase testID="flexNativeMenu_mainMenuItemDisabledToEnabled" description="Set a main menu item to be disabled for FlexNativeMenu" keywords="[FlexNativeMenu, dataProvider, XML]">
      <setup>
      <ResetComponent target="fnm" className="mx.controls.FlexNativeMenu" />
      <SetProperty target="fnm" propertyName="showRoot" value="false" />
      <SetProperty target="fnm" propertyName="labelField" value="@label" />
      <SetProperty target="fnm" propertyName="dataProvider" valueExpression="value=application.nativeMenuDP" waitTarget="fnm"
      waitEvent="updateComplete" />
      <RunCode code="application.fnm.dataDescriptor.setEnabled(application.nativeMenuDP.item[0], false)" waitTarget="fnm"
      waitEvent="updateComplete" />
      </setup>
      <body>
      <RunCode code="application.fnm.dataDescriptor.setEnabled(application.nativeMenuDP.item[0], true)" waitTarget="fnm"
      waitEvent="updateComplete" />
      <AssertMethodValue target="" method="value=application.fnm.nativeMenu.getItemAt(0).enabled" value="true" />
      </body>
      </TestCase>

      Actual Results: updateComplete events don't get sent when data is changed.

      Expected Results: updateComplete events do get sent when a dataProvider change is made

      Workaround (if any):
      Set updateCompletePendingFlag=false after Resetting the component.

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: