mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
fix: fix transfer when trying to select item from the right column while it has "unknown-key" within targetKeys (#48664)
This commit is contained in:
parent
dfaf6ba0bc
commit
cb19e0ed23
@ -343,7 +343,7 @@ const Transfer = <RecordType extends TransferItem = TransferItem>(
|
||||
const holder = [...(isLeftDirection ? sourceSelectedKeys : targetSelectedKeys)];
|
||||
const holderSet = new Set(holder);
|
||||
const data = [...(isLeftDirection ? leftDataSource : rightDataSource)].filter(
|
||||
(item) => !item.disabled,
|
||||
(item) => !item?.disabled,
|
||||
);
|
||||
const currentSelectedIndex = data.findIndex((item) => item.key === selectedKey);
|
||||
// multiple select by hold down the shift key
|
||||
|
Loading…
Reference in New Issue
Block a user