[bugfix] AddressList: can't select item when click empty area (#3909)
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
&__edit {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 15px;
|
||||
right: @padding-md;
|
||||
font-size: @address-list-edit-icon-size;
|
||||
transform: translate(0, -50%);
|
||||
}
|
||||
|
||||
@@ -42,6 +42,10 @@ function AddressList(
|
||||
switchable={props.switchable}
|
||||
onSelect={() => {
|
||||
emit(ctx, disabled ? 'select-disabled' : 'select', item, index);
|
||||
|
||||
if (!disabled) {
|
||||
emit(ctx, 'input', item.id);
|
||||
}
|
||||
}}
|
||||
onEdit={() => {
|
||||
emit(ctx, disabled ? 'edit-disabled' : 'edit', item, index);
|
||||
|
||||
Reference in New Issue
Block a user