Commit cfd90251 authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复默认地址回调不来的问题

parent f1ac696e
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-08-05 10:28:06
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-08-19 17:23:30
* @LastEditTime: 2021-08-20 11:05:41
* @Description: 地址选择 FormItem
*/
import React, { useState, useEffect, useMemo, useRef } from 'react';
......@@ -156,7 +156,7 @@ const AddressSelect: React.FC<IProps> = (props) => {
triggerChange(undefined);
}
if (isDefaultAddress && defaultItem && !disabled && !editable && !actionFlagRef.current) {
if (isDefaultAddress && defaultItem && !disabled && editable && !actionFlagRef.current) {
const { shipperName, receiverName, ...rest } = defaultItem;
const next = {
name: shipperName || receiverName,
......@@ -477,9 +477,6 @@ const AddressSelect: React.FC<IProps> = (props) => {
value={value?.id}
onChange={handleSelectChange}
disabled={disabled}
style={{
width: '100%',
}}
/>
</div>
<Button
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment