Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DB61910197 for ; Thu, 29 May 2014 16:19:02 +0000 (UTC) Received: (qmail 95404 invoked by uid 500); 29 May 2014 16:19:02 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 95329 invoked by uid 500); 29 May 2014 16:19:02 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 95190 invoked by uid 99); 29 May 2014 16:19:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 May 2014 16:19:02 +0000 Date: Thu, 29 May 2014 16:19:02 +0000 (UTC) From: "Mihai Chira (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FLEX-34344) DropDownList keeps acting on keyDown and other events after being removed from stage MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-34344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mihai Chira updated FLEX-34344: ------------------------------- Attachment: _DropDownListListeningTooMuch.fxp > DropDownList keeps acting on keyDown and other events after being removed from stage > ------------------------------------------------------------------------------------ > > Key: FLEX-34344 > URL: https://issues.apache.org/jira/browse/FLEX-34344 > Project: Apache Flex > Issue Type: Bug > Components: Spark: DropDownList > Affects Versions: Apache Flex 4.12.0 > Reporter: Mihai Chira > Labels: easytest > Fix For: Apache Flex 4.13.0 > > Attachments: _DropDownListListeningTooMuch.fxp > > > *Steps to reproduce*: > 1. Import and run the attached project. > 2. Click on the dropdown and select an item. > 3. Right click on the dropdown, which removes it from stage. > 4. Press UP/DOWN. > *Actual behaviour*: the dropdown's _proposedSelectedIndex keeps changing, showing the dropdown is still acting on keyboard events. > *Desired behaviour*: once it's off stage, the dropdown should not react to keyboard - or any other - events. > *Notes*: > -the same behaviour can be made visible by placing a breakpoint in DropDownListBase.keyDownHandler after step 3. > -I noticed that UIComponent adds event listeners for KEY_DOWN, KEY_UP, FOCUS_IN and FOCUS_OUT, but never removes them. Is the expectation that components themselves will remove these listeners when they're off stage, or is it an omission? -- This message was sent by Atlassian JIRA (v6.2#6252)