refactor(text-input): 添加外层view以解决小程序BUG #254
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
描述
经过确认,阿里小程序底层框架存在BUG。
当textarea同时设置了padding、box-sizing=border-box、width时,会导致文字溢出输入框。例如:
支付宝的同学已经确认相关问题,建议先在外层嵌套view,将相关样式设置到外层view来绕过这个问题。
更改
Break changes
这个修复会导致样式上的Break change,主要表现为: