We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd5f01f commit 3b84ac3Copy full SHA for 3b84ac3
packages/web-vue/components/transfer/transfer-list-item.tsx
@@ -32,14 +32,12 @@ export default defineComponent({
32
const transferCtx = inject(transferInjectionKey, undefined);
33
34
const handleClick = () => {
35
- if (!props.simple) {
36
- return;
+ if (props.simple && !props.disabled) {
+ transferCtx?.moveTo(
37
+ [props.data.value],
38
+ props.type === 'target' ? 'source' : 'target'
39
+ );
40
}
-
- transferCtx?.moveTo(
- [props.data.value],
41
- props.type === 'target' ? 'source' : 'target'
42
- );
43
};
44
45
const cls = computed(() => [
0 commit comments