diff --git a/core/field_dropdown.ts b/core/field_dropdown.ts index 4aaed32b845..ad728f2267a 100644 --- a/core/field_dropdown.ts +++ b/core/field_dropdown.ts @@ -278,12 +278,8 @@ export class FieldDropdown extends Field { dom.addClass(menuElement, 'blocklyDropdownMenu'); if (this.getConstants()!.FIELD_DROPDOWN_COLOURED_DIV) { - const primaryColour = block.isShadow() - ? block.getParent()!.getColour() - : block.getColour(); - const borderColour = block.isShadow() - ? (block.getParent() as BlockSvg).style.colourTertiary - : (this.sourceBlock_ as BlockSvg).style.colourTertiary; + const primaryColour = block.getColour(); + const borderColour = (this.sourceBlock_ as BlockSvg).style.colourTertiary; dropDownDiv.setColour(primaryColour, borderColour); }