Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion core/block_svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -1032,9 +1032,10 @@ Blockly.BlockSvg.prototype.updateColour = function() {
}

// Bump every dropdown to change its colour.
// TODO (#1456)
for (var x = 0, input; input = this.inputList[x]; x++) {
for (var y = 0, field; field = input.fieldRow[y]; y++) {
field.setText(null);
field.forceRerender();
}
}
};
Expand Down
6 changes: 2 additions & 4 deletions core/field_dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,8 @@ Blockly.FieldDropdown.prototype.init = function() {
' ' + Blockly.FieldDropdown.ARROW_CHAR));

Blockly.FieldDropdown.superClass_.init.call(this);
// Force a reset of the text to add the arrow.
var text = this.text_;
this.text_ = null;
this.setText(text);
// Make sure the arrow gets rendered.
this.forceRerender();
};

/**
Expand Down