Skip to content

Commit c875271

Browse files
committed
fix #136
1 parent bbe6eab commit c875271

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drop-down.android.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,10 @@ class DropDownAdapter extends android.widget.BaseAdapter implements android.widg
332332
const label = view.getViewById<Label>(LABELVIEWID);
333333
label.text = this.getItem(index);
334334

335-
// Copy root styles to view
336-
label.style.color = owner.style.color;
335+
// Copy root styles to view
336+
if (owner.style.color) {
337+
label.style.color = owner.style.color;
338+
}
337339
label.style.textDecoration = owner.style.textDecoration;
338340
label.style.textAlignment = owner.style.textAlignment;
339341
label.style.fontInternal = owner.style.fontInternal;

0 commit comments

Comments
 (0)