Andarist / Andarist/react-textarea-autosize

height calculated incorrectly in Edge if value just a new line and textarea has paddings

Ouverte
#234 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
TypeScript
Étoiles
2.4k
Forks
247
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Hello!
First of all thanks for this cool component!

I faced a small issue: height is calculated incorrectly in Edge if padding-left/padding-right are specified in textarea and user enters just new line (when initial value is empty).

Here is the example https://codepen.io/anon/pen/NoXKVN

Also this issue is reproduced only when paddings are 0 (In my case I needed top and bottom paddings and specified them as `padding: 5px 0 10px` . Changing it to `padding-top: 5px; padding-bottom: 10px` fixed the problem.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.