Skip to content

Commit 59e483b

Browse files
committed
fix: tree-select throw error when use slot title
1 parent 185e51c commit 59e483b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/vc-tree-select/src/Selector/SingleSelector.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const SingleSelector = {
6464
if (selectorValueList.length && !this.mirrorSearchValue) {
6565
const { label, value } = selectorValueList[0];
6666
selectedValueNodes.push(
67-
<span key="value" title={toTitle(label)} class={`${prefixCls}-selection-item`}>
67+
<span key={value} title={toTitle(label)} class={`${prefixCls}-selection-item`}>
6868
{label || value}
6969
</span>,
7070
);

0 commit comments

Comments
 (0)