Skip to content

Commit

Permalink
fix: tree-select throw error when use slot title
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Jul 8, 2021
1 parent 60aeec7 commit 1152e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/vc-tree-select/src/Selector/SingleSelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const SingleSelector = {
if (selectorValueList.length && !this.mirrorSearchValue) {
const { label, value } = selectorValueList[0];
selectedValueNodes.push(
<span key="value" title={toTitle(label)} class={`${prefixCls}-selection-item`}>
<span key={value} title={toTitle(label)} class={`${prefixCls}-selection-item`}>
{label || value}
</span>,
);
Expand Down

0 comments on commit 1152e8c

Please sign in to comment.