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

Mouse event propagation is not being stopped for Text input controls.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK Previous
    • None
    • mx: TextArea, mx: TextInput
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Browser: Firefox 3.x
      Language Found: English

    Description

      Steps to reproduce:
      1. Create a Flex 4 project in FB4.
      2. Copy-pase the following code into your main mxml file:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" applicationComplete="initApp()">
      <mx:Script>
      <![CDATA[
      public function initApp():void

      { myCanvas.addEventListener(MouseEvent.MOUSE_DOWN, canvasClickHandler, true); }

      public function canvasClickHandler(event:MouseEvent):void {
      if (event.eventPhase == EventPhase.CAPTURING_PHASE)

      { event.stopPropagation(); }

      }
      ]]
      >
      </mx:Script>

      <mx:Canvas width="250" height="250" id="myCanvas">
      <mx:TextArea x="30" y="25"/>
      <mx:ComboBox x="31" y="87"/>
      </mx:Canvas>
      </mx:Application>

      3. Run the app.
      4. Click on the TextArea control.

      Actual Results:
      Stop propagation on mouse down has no effect on the TextArea control. Focus is given to the control and text can be typed into it.

      Expected Results:
      See behavior when clicking on the ComboBox. Mouse down is not propagated to the ComboBox. Mouse down should not cause the TextArea to gain focus.

      Workaround (if any):

      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: