]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add SuggestionPopup to ComboBox SubParts. (#13286)
authorTeemu Suo-Anttila <teemusa@vaadin.com>
Mon, 3 Feb 2014 09:31:06 +0000 (11:31 +0200)
committerTeemu Suo-Anttila <teemusa@vaadin.com>
Mon, 3 Feb 2014 09:31:06 +0000 (11:31 +0200)
Change-Id: Ibee44bb9b568fc188ac9e05fb67ce94a9846b5bc

client/src/com/vaadin/client/ui/VFilterSelect.java

index 9b14fbbb3773475e925beebd5bd83e3ad10b1aac..63c8d3dbf93411787b06250bae56a8afb59c7e33 100644 (file)
@@ -1983,6 +1983,8 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler,
             return tb.getElement();
         } else if ("button".equals(subPart)) {
             return popupOpener.getElement();
+        } else if ("popup".equals(subPart) && suggestionPopup.isAttached()) {
+            return suggestionPopup.getElement();
         }
         return null;
     }
@@ -1993,6 +1995,8 @@ public class VFilterSelect extends Composite implements Field, KeyDownHandler,
             return "textbox";
         } else if (popupOpener.getElement().isOrHasChild(subElement)) {
             return "button";
+        } else if (suggestionPopup.getElement().isOrHasChild(subElement)) {
+            return "popup";
         }
         return null;
     }