Skip to content

Commit

Permalink
do not unbox single value if multiple mode
Browse files Browse the repository at this point in the history
this is the odd special case referenced in #1014
  • Loading branch information
gordonwoodhull committed Sep 20, 2015
1 parent ccc066d commit 96585ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/select-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ dc.selectMenu = function (parent, chartGroup) {
// check if only prompt option is selected
if (values.length === 1 && values[0] === '') {
values = null;
} else if (values.length === 1) {
} else if (!_multiple && values.length === 1) {
values = values[0];
}
_chart.onChange(values);
Expand Down

0 comments on commit 96585ab

Please sign in to comment.