fix: tree-select throw error when use slot title

pull/4346/head
tangjinzhou 2021-07-08 11:36:32 +08:00
parent 60aeec7033
commit 1152e8cd71
1 changed files with 1 additions and 1 deletions

View File

@ -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>,
);