Skip to content

Commit

Permalink
fix(transfer): fix disabled behavior in transfer simple mode (#3067)
Browse files Browse the repository at this point in the history
  • Loading branch information
oljc authored May 9, 2024
1 parent fd5f01f commit 3b84ac3
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/web-vue/components/transfer/transfer-list-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,12 @@ export default defineComponent({
const transferCtx = inject(transferInjectionKey, undefined);

const handleClick = () => {
if (!props.simple) {
return;
if (props.simple && !props.disabled) {
transferCtx?.moveTo(
[props.data.value],
props.type === 'target' ? 'source' : 'target'
);
}

transferCtx?.moveTo(
[props.data.value],
props.type === 'target' ? 'source' : 'target'
);
};

const cls = computed(() => [
Expand Down

0 comments on commit 3b84ac3

Please sign in to comment.