Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法指定某个输入框拥有与配置表不一样的 keyboardAppearance 值 #923

Closed
MoLice opened this issue Mar 10, 2020 · 2 comments
Labels

Comments

@MoLice
Copy link
Collaborator

MoLice commented Mar 10, 2020

Bug 表现
在项目启用了配置表的情况下, 项目里的输入框键盘外观将被强制指定为与配置表相同的值,而无法存在差异值。

如何重现

  1. 配置表里 KeyboardAppearance 设置为 UIKeyboardAppearanceDefault
  2. 将某个输入框的 keyboardAppearance 设置为 UIKeyboardAppearanceDark
  3. 运行即可看到该输入框的键盘依然为白色。

预期的表现
如果业务没指定键盘样式,则应跟随配置表,如果业务指定了,则跟随业务的值,不考虑配置表。

其他信息

  • 设备: [All]
  • iOS 版本: [iOS 13.x]
  • Xcode 版本: [Xcode 11.x]
  • QMUI 版本: [4.0.4]
@MoLice
Copy link
Collaborator Author

MoLice commented Mar 10, 2020

该 bug 原因是在 QMUITheme 里有这么一段逻辑:
image

正是这段逻辑覆盖了 keyboardAppearance 的值,导致业务不管怎么修改,最终都会使用配置表的。

@MoLice MoLice added the bug label Mar 10, 2020
@MoLice
Copy link
Collaborator Author

MoLice commented Mar 27, 2020

已发布 4.1.0 修复该问题。

@MoLice MoLice closed this as completed Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant