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

文本框获取焦点后,弹出键盘, 此时切换到后台,然后程序切换到前台. 键盘颜色发生改变. #1004

Closed
javaoraspx opened this issue May 27, 2020 · 2 comments

Comments

@javaoraspx
Copy link

Bug 表现
文本框获取焦点后,弹出键盘, 此时切换到后台,在程序切换到前台. 键盘颜色发生改变.

截图

如何重现

  1. 运行最新demo程序.
  2. 选择 QMUITextField 示例
  3. 文本框中获取焦点,弹出键盘
  4. 进入后台
  5. 重新进入程序前台
    6.键盘颜色被更换

预期的表现
主题未发生改变时. 键盘的主题颜色不应该被更改

其他信息

  • 设备: 模拟器,iPhone 7P
  • iOS 版本: [iOS 13.4.1]
  • Xcode 版本: Version 11.4.1 (11E503a)
  • QMUI 版本: [4.1.3]

版本 4.0.3 未复现

  • 设备: iPhone11
  • iOS 版本: [iOS 13.4.1]
  • QMUI 版本: [4.0.3]
@javaoraspx
Copy link
Author

暂时解决方法
各个主题的config文件中

  • applyConfigurationTemplate
    注释掉以下键盘相关代码
    QMUICMI.keyboardAppearance = UIKeyboardAppearance*

测试结果:夜间模式键盘也能自动更改

@CloudlessMoon
Copy link

Duplicate of #997

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants