Skip to content

Commit

Permalink
fix horizontal expansion of textarea with autoexpand={true}
Browse files Browse the repository at this point in the history
  • Loading branch information
MahirMahdi committed Aug 3, 2023
1 parent 46f7b1c commit 628740f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

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.

# v21.2.3

- [Fix] `overflow-wrap: anywhere` is added to stop unnecessary horizontal expansion of `TextArea` when `autoExpand={true}`.

# v21.2.2

- [Docs] Fix links to Reactist components in storybook stories.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"email": "henning@doist.com",
"url": "http://doist.com"
},
"version": "21.2.2",
"version": "21.2.3",
"license": "MIT",
"homepage": "https://github.com/Doist/reactist#readme",
"repository": {
Expand Down
1 change: 1 addition & 0 deletions src/text-area/text-area.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ See https://css-tricks.com/the-cleanest-trick-for-autogrowing-textareas/
font: inherit;
width: 100%;
resize: vertical;
overflow-wrap: anywhere; /* to stop unnecessary horizontal expansion of text-area when `autoExpand` is enabled.*/
}

.textAreaContainer:not(.bordered) .innerContainer::after,
Expand Down

0 comments on commit 628740f

Please sign in to comment.