浏览代码

no popup if no options

ncannasse 11 年之前
父节点
当前提交
25fcf6f09f
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 )