You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2020/04/24 17:01:41 UTC

[royale-asjs] branch develop updated: jewel-combobox: should solve an issue where click in popup scrollbar dissmiss the popup

This is an automated email from the ASF dual-hosted git repository.

carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 1028d17  jewel-combobox: should solve an issue where click in popup scrollbar dissmiss the popup
1028d17 is described below

commit 1028d174f2c6f7f3f0ddc825a5ef50014e3339ae
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Fri Apr 24 19:01:37 2020 +0200

    jewel-combobox: should solve an issue where click in popup scrollbar dissmiss the popup
---
 .../org/apache/royale/jewel/beads/controllers/ComboBoxController.as   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controllers/ComboBoxController.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controllers/ComboBoxController.as
index 4ae4cdb..f16b77a 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controllers/ComboBoxController.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controllers/ComboBoxController.as
@@ -24,6 +24,7 @@ package org.apache.royale.jewel.beads.controllers
     }
 	import org.apache.royale.core.IBeadController;
 	import org.apache.royale.core.IComboBoxModel;
+	import org.apache.royale.core.IItemRenderer;
 	import org.apache.royale.core.IItemRendererOwnerView;
 	import org.apache.royale.core.IStrand;
 	import org.apache.royale.events.Event;
@@ -250,7 +251,8 @@ package org.apache.royale.jewel.beads.controllers
 		 */
 		private function listClickHandler(event:Event):void
 		{
-			dismissPopUp();
+			if(event.target is IItemRenderer)
+				dismissPopUp();
 		}
 
         protected function modelChangeHandler(event:Event):void{