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/10/25 19:16:50 UTC
[royale-asjs] branch develop updated: jewel-searchfilter: fix an
issue in the search solved by Hugo Ferreira in "Fixed Jewel ComboBox freeze
with SearchFilter" (Pull Request 922)
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 ad900fb jewel-searchfilter: fix an issue in the search solved by Hugo Ferreira in "Fixed Jewel ComboBox freeze with SearchFilter" (Pull Request 922)
ad900fb is described below
commit ad900fba7624fb8f0b7f89a584d077b83789e9df
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sun Oct 25 20:16:41 2020 +0100
jewel-searchfilter: fix an issue in the search solved by Hugo Ferreira in "Fixed Jewel ComboBox freeze with SearchFilter" (Pull Request 922)
---
.../jewel/beads/controls/combobox/SearchFilter.as | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/combobox/SearchFilter.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/combobox/SearchFilter.as
index 7412797..59d01d0 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/combobox/SearchFilter.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/combobox/SearchFilter.as
@@ -23,6 +23,8 @@ package org.apache.royale.jewel.beads.controls.combobox
import org.apache.royale.jewel.beads.controls.textinput.SearchFilterForList;
import org.apache.royale.jewel.beads.views.ComboBoxView;
import org.apache.royale.jewel.supportClasses.textinput.TextInputBase;
+ import org.apache.royale.jewel.List;
+ import org.apache.royale.events.MouseEvent;
/**
* The SearchFilter bead class is a specialty bead that can be used with
@@ -112,5 +114,21 @@ package org.apache.royale.jewel.beads.controls.combobox
protected function popUpClosedHandler():void {
list = null;
}
+
+ public override function set list(value:List):void
+ {
+ super.list = value;
+ COMPILE::JS
+ {
+ if (list != null)
+ list.addEventListener(MouseEvent.CLICK, onListClick);
+ }
+ }
+
+ private function onListClick(event:MouseEvent):void
+ {
+ list.removeEventListener(MouseEvent.CLICK, onListClick);
+ comboView.popUpVisible = false;
+ }
}
}