Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit 3a83c75

Browse files
author
Yvonne Yip
committed
use 'selected' as the label if there is no label
1 parent dbe61f7 commit 3a83c75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core-dropdown.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<link href="core-dropdown.css" rel="stylesheet">
6464

6565
<div id="control" layout horizontal center on-tap="{{toggle}}">
66-
<core-item flex src="{{selectedItem.src}}" icon="{{selectedItem.icon}}" label="{{selectedItem ? selectedItem.label : label}}"></core-item>
66+
<core-item flex src="{{selectedItem.src}}" icon="{{selectedItem.icon}}" label="{{selectedItem ? (selectedItem.label || selected) : label}}"></core-item>
6767
<core-icon id="arrow" icon="{{opened ? 'arrow-drop-up' : 'arrow-drop-down'}}"></core-icon>
6868
</div>
6969

0 commit comments

Comments
 (0)