Skip to content

Commit

Permalink
fix(comp:transfer): correct data param of getAllSelectedKeys
Browse files Browse the repository at this point in the history
 `data` param of `getAllSelectedKeys`  strategy fuction should be datasource when mod is immediate
  • Loading branch information
sallerli1 committed Jan 12, 2023
1 parent 9a5301a commit e883601
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export function useTransferSelectState(

const {
dataKeyMap,
dataSource,
sourceData,
targetData,
sourceDataKeys,
Expand Down Expand Up @@ -187,7 +188,7 @@ export function useTransferSelectState(
return
}

const data = isSource ? sourceData.value : targetData.value
const data = isSource ? (props.mode === 'default' ? sourceData.value : dataSource.value) : targetData.value
const _disabledKeys = isSource ? (props.mode === 'default' ? disabledSourceKeys : disabledKeys) : disabledTargetKeys
const selectedKeySet = isSource ? sourceSelectedKeySet : targetSelectedKeySet
const setSelectedKeys = isSource ? setSourceSelectedKeys : setTargetSelectedKeys
Expand Down

0 comments on commit e883601

Please sign in to comment.