bstouls 8 years ago
parent
commit
f5be209cec
1 changed files with 2 additions and 1 deletions
  1. 2 1
      h2d/Dropdown.hx

+ 2 - 1
h2d/Dropdown.hx

@@ -199,7 +199,8 @@ class Dropdown extends Flow {
 
 	override function onRemove() {
 		super.onRemove();
-		close();
+		if( dropdownList.parent != this )
+			dropdownList.remove();
 	}
 
 	public dynamic function onOpen() {