fix(AddressList): input event triggered twice (#4659)

This commit is contained in:
neverland 2019-10-08 17:40:11 +08:00 committed by GitHub
parent 17b7517285
commit f91e6b42a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,14 +63,7 @@ function AddressList(
return (
<div class={bem()} {...inherit(ctx)}>
{slots.top && slots.top()}
<RadioGroup
value={props.value}
onInput={(event: Event) => {
emit(ctx, 'input', event);
}}
>
{List}
</RadioGroup>
<RadioGroup value={props.value}>{List}</RadioGroup>
{props.disabledText && <div class={bem('disabled-text')}>{props.disabledText}</div>}
{DisabledList}
{slots.default && slots.default()}