Skip to content

Commit fc577c5

Browse files
authored
fix horizontal expansion of textarea with autoexpand={true} (#786)
1 parent 46f7b1c commit fc577c5

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Reactist follows [semantic versioning](https://semver.org/) and doesn't introduce breaking changes (API-wise) in minor or patch releases. However, the appearance of a component might change in a minor or patch release so keep an eye on redesigns and make sure your app still looks and feels like you expect it.
44

5+
# v21.2.3
6+
7+
- [Fix] Prevent horizontal expansion of `TextArea` with `autoExpand={true}`.
8+
59
# v21.2.2
610

711
- [Docs] Fix links to Reactist components in storybook stories.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"email": "henning@doist.com",
77
"url": "http://doist.com"
88
},
9-
"version": "21.2.2",
9+
"version": "21.2.3",
1010
"license": "MIT",
1111
"homepage": "https://github.com/Doist/reactist#readme",
1212
"repository": {

src/text-area/text-area.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ See https://css-tricks.com/the-cleanest-trick-for-autogrowing-textareas/
2727
font: inherit;
2828
width: 100%;
2929
resize: vertical;
30+
overflow-wrap: anywhere; /* to stop unnecessary horizontal expansion of text-area when `autoExpand` is enabled.*/
3031
}
3132

3233
.textAreaContainer:not(.bordered) .innerContainer::after,

0 commit comments

Comments
 (0)