Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛[BUG] 当ProCard 的 extra 存在 proformSwitch 时会自动联控折叠 #7247

Closed
AccerYou opened this issue Jun 16, 2023 · 1 comment
Closed

Comments

@AccerYou
Copy link

AccerYou commented Jun 16, 2023

🐛 bug 描述

当 ProCard 的 Extra 属性中存在ProFormSwitch组件时,控制ProFormSwitch变化会存在连贯控制ProCard折叠

注意:ProCard仅仅开启了折叠功能,但没有配置与ProFormSwitch联控

📷 复现步骤

<ProCard
      title=“啊啊啊啊”
      hoverable
      bordered
      collapsible
      extra={
        <ProFormGroup>
          <ProFormSwitch
            name="Enable"
            noStyle
            checkedChildren={'启用'}
            unCheckedChildren={'禁用'}
          />
        </ProFormGroup>
      }
    >

🏞 期望结果

ProFormSwitch 的值变化不应该控制ProCard的折叠事件,如果需要控制,应当是手动加入监听事件去改变ProCard折叠事件。

💻 复现代码

<ProCard
title=“啊啊啊啊”
hoverable
bordered
collapsible
extra={

<ProFormSwitch
name="Enable"
noStyle
checkedChildren={'启用'}
unCheckedChildren={'禁用'}
/>

}
>

© 版本信息

  • ProComponents 版本: [2.5.7]

🚑 其他信息

@chenshuai2144
Copy link
Contributor

事件看起来冒泡了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants