Skip to content

Commit

Permalink
fix: fix merge bug
Browse files Browse the repository at this point in the history
  • Loading branch information
XieZongChen committed Aug 15, 2022
1 parent ea5ec8b commit 14dba66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transfer/src/use-transfer-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function useTransferData (props: UseTransferDataProps) {
const mergedValueSet = mergedValueSetRef.value
const values: Array<string | number> = []
filteredSrcOptionsRef.value.forEach((option) => {
if (!option.disabled || !mergedValueSet.has(option.value)) {
if (!option.disabled && !mergedValueSet.has(option.value)) {
values.push(option.value)
}
})
Expand All @@ -83,7 +83,7 @@ export function useTransferData (props: UseTransferDataProps) {

const valueSetForUnselectAllRef = computed(() => {
const values: Array<string | number> = []
targetOptionsRef.value.forEach((option) => {
filteredSrcOptionsRef.value.forEach((option) => {
if (!option.disabled) {
values.push(option.value)
}
Expand Down

0 comments on commit 14dba66

Please sign in to comment.