fix: radio click trigger twice, close #5389
parent
7bf1e0dda1
commit
2feab99b89
|
@ -61,12 +61,7 @@ export default defineComponent({
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
const radioGroup = radioGroupContext;
|
const radioGroup = radioGroupContext;
|
||||||
const {
|
const { prefixCls: customizePrefixCls, id = formItemContext.id.value, ...restProps } = props;
|
||||||
prefixCls: customizePrefixCls,
|
|
||||||
id = formItemContext.id.value,
|
|
||||||
onClick,
|
|
||||||
...restProps
|
|
||||||
} = props;
|
|
||||||
|
|
||||||
const rProps: RadioProps = {
|
const rProps: RadioProps = {
|
||||||
prefixCls: prefixCls.value,
|
prefixCls: prefixCls.value,
|
||||||
|
@ -90,7 +85,7 @@ export default defineComponent({
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<label class={wrapperClassString} onClick={onClick}>
|
<label class={wrapperClassString}>
|
||||||
<VcCheckbox {...rProps} type="radio" ref={vcCheckbox} />
|
<VcCheckbox {...rProps} type="radio" ref={vcCheckbox} />
|
||||||
{slots.default && <span>{slots.default()}</span>}
|
{slots.default && <span>{slots.default()}</span>}
|
||||||
</label>
|
</label>
|
||||||
|
|
Loading…
Reference in New Issue