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 Jul 28, 2023
1 parent 1feff1c commit 7712f35
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.1

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

# v21.2.0

- [Feat] `Textfield`, `PasswordField`, `SelectField`, and `TextArea` will now use two new CSS variables to define their border colors: `--reactist-inputs-focus`, `--reactist-inputs-idle`. If they were previously set using `--reactist-divider-primary` and `--reactist-divider-secondary`, they will continue to work as well.
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.0",
"version": "21.2.1",
"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 auto-expand is enabled*/
}

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

0 comments on commit 7712f35

Please sign in to comment.