Skip to content

[BUG] Radio 的 children 中使用了 type 为 checkbox 的 input,样式被影响 #2791

@YyumeiZhang

Description

@YyumeiZhang

Is there an existing issue for this?

  • I have searched the existing issues

Which Component

Radio

Semi Version

2.77.1

Current Behavior

样式不正确 + 点击被遮挡
Image

Image

Expected Behavior

Image
正常显示 + 正常点击

Steps To Reproduce

No response

ReproducibleCode

import React from 'react';
import { Radio, MarkdownRender } from '@douyinfe/semi-ui';

() => (
    <Radio aria-label="单选示例" name="demo-radio"><MarkdownRender raw={`
- [ ] 多达 3000+ Design Token,深入每一处细节的定制可能,色彩,阴影,边距,圆角,动效,渲染结构均可自由定制,告别 ~~CSS 硬编码~~
    `}/></Radio>
);

Environment

- OS:
- browser:

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions