Andarist / Andarist/react-textarea-autosize

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

Đang mở
#234 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
2.4k
Fork
247
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.