diff --git a/packages/address-list/Item.tsx b/packages/address-list/Item.tsx index a3ddeab34..7fa861cf6 100644 --- a/packages/address-list/Item.tsx +++ b/packages/address-list/Item.tsx @@ -36,11 +36,11 @@ function AddressItem( ) { const { disabled, switchable } = props; - const onSelect = () => { - if (props.switchable) { + function onSelect() { + if (switchable) { emit(ctx, 'select'); } - }; + } const renderRightIcon = () => ( {data.address} ]; - return props.switchable ? ( + return switchable && !disabled ? ( {Info} @@ -73,7 +73,7 @@ function AddressItem( { emit(ctx, disabled ? 'select-disabled' : 'select', item, index); }}