[bugfix] AddressList: can't select item when click empty area (#3909)

This commit is contained in:
neverland
2019-07-20 11:19:08 +08:00
committed by GitHub
parent f64519172e
commit b2b60f58a8
3 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -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%);
}
+4
View File
@@ -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);