Andarist / Andarist/react-textarea-autosize

Height on iOS Safari doesn't account for padding

未关闭
#384 1 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
2.4k
派生
247
PR 合并指标
30 天内没有已合并 PR

描述

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)

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。