Explorar o código

no popup if no options

ncannasse %!s(int64=11) %!d(string=hai) anos
pai
achega
25fcf6f09f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 )