Przeglądaj źródła

no popup if no options

ncannasse 11 lat temu
rodzic
commit
25fcf6f09f
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      h2d/comp/Select.hx

+ 1 - 1
h2d/comp/Select.hx

@@ -24,7 +24,7 @@ class Select extends Interactive {
 	}
 	
 	public function popup() {
-		if( list != null )
+		if( list != null || options.length == 0 )
 			return;
 		var p : Component = this;
 		while( p.parentComponent != null )