mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Fix node toggle button initial opacity
This commit is contained in:
		| @@ -3921,7 +3921,10 @@ RED.view = (function() { | ||||
|                             } | ||||
|                             this.__buttonGroup__.setAttribute("transform", "translate("+x+",2)"); | ||||
|  | ||||
|                             this.__buttonGroupBackground__.setAttribute("fill-opacity",d._def.button.toggle?(d[d._def.button.toggle]?1:0.2):1) | ||||
|                             if (d._def.button.toggle) { | ||||
|                                 this.__buttonGroupButton__.setAttribute("fill-opacity",d[d._def.button.toggle]?1:0.2) | ||||
|                                 this.__buttonGroupBackground__.setAttribute("fill-opacity",d[d._def.button.toggle]?1:0.2) | ||||
|                             } | ||||
|  | ||||
|                             if (typeof d._def.button.visible === "function") { // is defined and a function... | ||||
|                                 if (d._def.button.visible.call(d) === false) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user