Skip to content

Commit ba7ecfd

Browse files
authored
Merge pull request #884 from plotly/dropdown-fixes
Dropdown fixes
2 parents 271d53d + 9b35440 commit ba7ecfd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/components/widgets/Dropdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Dropdown extends Component {
5858
placeholder={placeholder || _('Select an Option')}
5959
isClearable={clearable}
6060
value={opts.filter(o =>
61-
Array.isArray(value) ? value.includes(o.value) : value === o.value
61+
Array.isArray(value) ? value.includes(o[valueKey]) : value === o[valueKey]
6262
)}
6363
options={opts}
6464
isSearchable={searchable}

src/styles/components/widgets/_dropdown.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
padding-top: 0;
3838
padding-bottom: 0;
3939
}
40+
&-notice {
41+
background: var(--color-background-inputs);
42+
}
4043
}
4144
&__indicator-separator {
4245
display: none;

0 commit comments

Comments
 (0)