From 3a1a82970807b140f588eac735787d60357e1ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Tue, 13 Jul 2021 21:38:19 +0800 Subject: [PATCH] fix: TextArea style missing (#31391) --- components/input/TextArea.tsx | 1 + .../__tests__/__snapshots__/demo.test.js.snap | 28 +++++++++++++++++++ components/input/demo/textarea-resize.md | 1 + 3 files changed, 30 insertions(+) diff --git a/components/input/TextArea.tsx b/components/input/TextArea.tsx index 815ea26555..136b2dca8c 100644 --- a/components/input/TextArea.tsx +++ b/components/input/TextArea.tsx @@ -157,6 +157,7 @@ const TextArea = React.forwardRef( handleReset={handleReset} ref={clearableInputRef} bordered={bordered} + style={showCount ? undefined : style} /> ); diff --git a/components/input/__tests__/__snapshots__/demo.test.js.snap b/components/input/__tests__/__snapshots__/demo.test.js.snap index 48c8abf63d..824a1a749f 100644 --- a/components/input/__tests__/__snapshots__/demo.test.js.snap +++ b/components/input/__tests__/__snapshots__/demo.test.js.snap @@ -3207,6 +3207,34 @@ Array [ > The autoSize property applies to textarea nodes, and only the height changes automatically. In addition, autoSize can be set to an object, specifying the minimum number of rows and the maximum number of rows. The autoSize property applies to textarea nodes, and only the height changes automatically. In addition, autoSize can be set to an object, specifying the minimum number of rows and the maximum number of rows. , + +