Andarist / Andarist/react-textarea-autosize

Specific content length leads to unintended behavior after load

Offen
#226 5 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
2.4k
Forks
247
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**Version:** latest

https://codesandbox.io/s/lxqqw4k9rq

This example shows a use of the textarea where it should extend from 1 to 2 lines before showing a scrollbar. The predefined given content however leads to a situation where the textarea already shows a scrollbar after load instead of extending to a new line. Editing the value shows that it extends correctly if you add a few more characters and that it would even fit on one line.

I thing it has something to do with the length of the content with consideration about the style (since it effects the length).

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.