Skip to content

Commit

Permalink
Fix Select multiple select issue when has the same label
Browse files Browse the repository at this point in the history
  • Loading branch information
e1emeb0t authored and sam019 committed Apr 4, 2018
1 parent 61cbfa5 commit bb14c55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "element-react",
"version": "1.4.11",
"version": "1.4.12",
"description": "Element UI for React",
"private": false,
"main": "dist/npm/es5/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/select/Select.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ class Select extends Component {
selected = selected.slice(0);

selected.forEach((item, index) => {
if (item === option || item.currentLabel() === option.currentLabel()) {
if (item === option || item.props.value === option.props.value) {
optionIndex = index;
}
});
Expand Down

0 comments on commit bb14c55

Please sign in to comment.