Andarist / Andarist/react-textarea-autosize

Inserting newline sometimes causes strange renders

Open
#340 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.4k
Forks
247
PR merge metrics
No merged PRs in 30d

Description

Thanks for this great library! I came across the behavior below today. It seems as if inserting text renders differently than typing the text from start to finish (or copy-pasting it).

For example, below, the text is
```
insert one newlin
e
```

but looks differently if typed from start-to-fnish or if the newline is inserted.

This seems to happen when inserting a non-newline character would cause wrapping to occur.

![Apr-18-2022 13-32-34](https://user-images.githubusercontent.com/9010790/163848506-3eb79169-53db-491b-b3bd-38c5aace3657.gif)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.