Skip to content

Commit 0f4ee63

Browse files
authored
set text color after render
1 parent c27eff8 commit 0f4ee63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/field_dropdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,11 @@ Blockly.FieldDropdown.prototype.showEditor_ = function() {
205205
menuItem.setRightToLeft(this.sourceBlock_.RTL);
206206
menuItem.setValue(value);
207207
menuItem.setCheckable(true);
208+
menu.addChild(menuItem, true);
208209
if (this.sourceBlock_.textColour) {
209210
menuItem.element_.style.color = this.sourceBlock_.textColour;
210211
}
211212

212-
menu.addChild(menuItem, true);
213213
var checked = (value == this.value_);
214214
menuItem.setChecked(checked);
215215
if (checked) {

0 commit comments

Comments
 (0)