소스 검색

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 )