mirror of
https://github.com/google/blockly.git
synced 2026-01-11 02:47:09 +01:00
Fix field colour in headless (#3795)
This commit is contained in:
@@ -220,7 +220,7 @@ Blockly.FieldColour.prototype.doValueUpdate_ = function(newValue) {
|
||||
this.value_ = newValue;
|
||||
if (this.borderRect_) {
|
||||
this.borderRect_.style.fill = newValue;
|
||||
} else if (this.sourceBlock_) {
|
||||
} else if (this.sourceBlock_ && this.sourceBlock_.rendered) {
|
||||
this.sourceBlock_.pathObject.svgPath.setAttribute('fill', newValue);
|
||||
this.sourceBlock_.pathObject.svgPath.setAttribute('stroke', '#fff');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user