Andarist / Andarist/react-textarea-autosize

Inserting newline sometimes causes strange renders

Aperta
#340 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
2.4k
Fork
247
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.