Browse Source

changing canEdit value also change alpha

bstouls 7 years ago
parent
commit
70b7dbac08
1 changed files with 1 additions and 0 deletions
  1. 1 0
      h2d/Dropdown.hx

+ 1 - 0
h2d/Dropdown.hx

@@ -164,6 +164,7 @@ class Dropdown extends Flow {
 
 
 	function set_canEdit(b) {
 	function set_canEdit(b) {
 		if( !b ) close();
 		if( !b ) close();
+		alpha = b ? 1 : 0.7;
 		return canEdit = b;
 		return canEdit = b;
 	}
 	}