From 4e03eda9e639a80c39998261120ebfa5df8f382f Mon Sep 17 00:00:00 2001 From: mgabor <9047995+mgabor3141@users.noreply.github.com> Date: Sat, 22 Apr 2023 11:26:44 +0200 Subject: [PATCH 1/2] fix: potentially incorrect width for hidden textarea --- src/forceHiddenStyles.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/forceHiddenStyles.ts b/src/forceHiddenStyles.ts index 288160e9..c308d452 100644 --- a/src/forceHiddenStyles.ts +++ b/src/forceHiddenStyles.ts @@ -1,6 +1,7 @@ const HIDDEN_TEXTAREA_STYLE = { 'min-height': '0', 'max-height': 'none', + width: 'auto', height: '0', visibility: 'hidden', overflow: 'hidden', From 9af95aef5ede6f3abd3b138feef941c6d6c31575 Mon Sep 17 00:00:00 2001 From: mgabor <9047995+mgabor3141@users.noreply.github.com> Date: Sat, 22 Apr 2023 11:27:53 +0200 Subject: [PATCH 2/2] create changeset --- .changeset/fix-textarea-width.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/fix-textarea-width.md diff --git a/.changeset/fix-textarea-width.md b/.changeset/fix-textarea-width.md new file mode 100644 index 00000000..fa88ebb6 --- /dev/null +++ b/.changeset/fix-textarea-width.md @@ -0,0 +1,5 @@ +--- +"react-textarea-autosize": patch +--- + +fix: potentially incorrect width for hidden textarea