Skip to content

Commit

Permalink
fix: Tabs inkBar in StrictMode (#39653)
Browse files Browse the repository at this point in the history
* fix: tabs inkBar in StrictMode

* test: update snapshot

* test: update snapshot
  • Loading branch information
zombieJ committed Dec 19, 2022
1 parent e60a7f7 commit 862231d
Show file tree
Hide file tree
Showing 7 changed files with 222 additions and 1 deletion.
Expand Up @@ -764,6 +764,7 @@ Array [
>
<div
class="ant-tabs-tab ant-tabs-tab-active"
data-node-key="tab1"
>
<div
aria-disabled="false"
Expand All @@ -777,6 +778,7 @@ Array [
</div>
<div
class="ant-tabs-tab"
data-node-key="tab2"
>
<div
aria-disabled="false"
Expand Down Expand Up @@ -900,6 +902,7 @@ Array [
>
<div
class="ant-tabs-tab"
data-node-key="article"
>
<div
aria-disabled="false"
Expand All @@ -913,6 +916,7 @@ Array [
</div>
<div
class="ant-tabs-tab ant-tabs-tab-active"
data-node-key="app"
>
<div
aria-disabled="false"
Expand All @@ -926,6 +930,7 @@ Array [
</div>
<div
class="ant-tabs-tab"
data-node-key="project"
>
<div
aria-disabled="false"
Expand Down
5 changes: 5 additions & 0 deletions components/card/__tests__/__snapshots__/demo.test.ts.snap
Expand Up @@ -764,6 +764,7 @@ Array [
>
<div
class="ant-tabs-tab ant-tabs-tab-active"
data-node-key="tab1"
>
<div
aria-disabled="false"
Expand All @@ -777,6 +778,7 @@ Array [
</div>
<div
class="ant-tabs-tab"
data-node-key="tab2"
>
<div
aria-disabled="false"
Expand Down Expand Up @@ -881,6 +883,7 @@ Array [
>
<div
class="ant-tabs-tab"
data-node-key="article"
>
<div
aria-disabled="false"
Expand All @@ -894,6 +897,7 @@ Array [
</div>
<div
class="ant-tabs-tab ant-tabs-tab-active"
data-node-key="app"
>
<div
aria-disabled="false"
Expand All @@ -907,6 +911,7 @@ Array [
</div>
<div
class="ant-tabs-tab"
data-node-key="project"
>
<div
aria-disabled="false"
Expand Down
Expand Up @@ -28743,6 +28743,7 @@ exports[`ConfigProvider components Tabs configProvider 1`] = `
>
<div
class="config-tabs-tab config-tabs-tab-active"
data-node-key="Light"
>
<div
aria-controls="rc-tabs-test-panel-Light"
Expand Down Expand Up @@ -28832,6 +28833,7 @@ exports[`ConfigProvider components Tabs configProvider componentDisabled 1`] = `
>
<div
class="config-tabs-tab config-tabs-tab-active"
data-node-key="Light"
>
<div
aria-controls="rc-tabs-test-panel-Light"
Expand Down Expand Up @@ -28921,6 +28923,7 @@ exports[`ConfigProvider components Tabs configProvider componentSize large 1`] =
>
<div
class="config-tabs-tab config-tabs-tab-active"
data-node-key="Light"
>
<div
aria-controls="rc-tabs-test-panel-Light"
Expand Down Expand Up @@ -29010,6 +29013,7 @@ exports[`ConfigProvider components Tabs configProvider componentSize middle 1`]
>
<div
class="config-tabs-tab config-tabs-tab-active"
data-node-key="Light"
>
<div
aria-controls="rc-tabs-test-panel-Light"
Expand Down Expand Up @@ -29099,6 +29103,7 @@ exports[`ConfigProvider components Tabs configProvider virtual and dropdownMatch
>
<div
class="ant-tabs-tab ant-tabs-tab-active"
data-node-key="Light"
>
<div
aria-controls="rc-tabs-test-panel-Light"
Expand Down Expand Up @@ -29188,6 +29193,7 @@ exports[`ConfigProvider components Tabs normal 1`] = `
>
<div
class="ant-tabs-tab ant-tabs-tab-active"
data-node-key="Light"
>
<div
aria-controls="rc-tabs-test-panel-Light"
Expand Down Expand Up @@ -29277,6 +29283,7 @@ exports[`ConfigProvider components Tabs prefixCls 1`] = `
>
<div
class="prefix-Tabs-tab prefix-Tabs-tab-active"
data-node-key="Light"
>
<div
aria-controls="rc-tabs-test-panel-Light"
Expand Down

0 comments on commit 862231d

Please sign in to comment.