https://github.com/ant-design/ant-design/issues/12051Go to Github

RewardedView in新版本Tabs组件设置className生成的dom中有两个地方会加上class#12051

ty-btcreated the issue 12 days ago

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.9.1

Environment

Google Chrome 68.0.3440.106

Edit on CodeSandbox

Steps to reproduce

在Tabs组件中设置className="new-tab" 在浏览器中审查元素发现 .ant-tabs 和 .ant-tabs-bar位置都增加了 new-tab 类,

What is expected?

应该只有.ant-tabs位置增加class

What is actually happening?

有两个位置都增加了class

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->

Logs

  1. afc163was rewarded $158 days ago
  2. afc163submittedPR8 days ago
  3. afc163started working8 days ago
  4. boostiofunded $1512 days ago

Total Fund

$15

Funded by

1

Work status

afc163 has finished work

It took less than a minute to finish

https://github.com/ant-design/ant-design/pull/12085Go to PR