Andarist / Andarist/react-textarea-autosize

Height on iOS Safari doesn't account for padding

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

Description

On iOS Safari, if your textarea has 0 padding then this seems to work fine.

However, if your textarea has top or bottom padding, then the calculated height does not include the padding, meaning that the textarea ends up overflowing with a scrollbar.

This does not seem to happen on desktop Safari, just on mobile.

![IMG_3579](https://github.com/Andarist/react-textarea-autosize/assets/1155963/e51ee59d-6624-415e-9329-48411d694f01)

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.