[bugfix] AddressList: should hide radio when unswitchable (#2886)

This commit is contained in:
neverland
2019-03-02 10:48:18 +08:00
committed by GitHub
parent 3a7a4674e4
commit 0245e663d0
3 changed files with 51 additions and 1 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ function AddressItem(
<div class={bem('address')}>{data.address}</div>
];
return props.disabled ? Info : <Radio name={data.id}>{Info}</Radio>;
return props.switchable ? <Radio name={data.id}>{Info}</Radio> : Info;
};
const onSelect = () => {