Skip to content

Conversation

@wangshunnn
Copy link
Collaborator

@wangshunnn wangshunnn commented Nov 7, 2025

Fix: Mpx2RN input & keyboard 相关问题

  1. iOS bindfocus 触发异常问题

    • 原因:iOS 下会在 bindfocus 触发前获取到 keyboardAvoid.current.keyboardHeight 高度,但是在 bindfocussetKeyboardAvoidContext 重置时丢失了高度,导致后续走到 Android 应该走的延时逻辑去了,触发不了 bindfocus
    • 修复方案:优化 setKeyboardAvoidContext 时机,兼容 auto-focus/focus 和手动聚焦两种场景。
  2. 部分 Android 多个 Input 组件聚焦切换时可能引发键盘时序问题

    • 新旧键盘事件时序问题导致之前的 keyboardAvoid.current 被错误清除为 null。56956d8
  3. mpx-textarea 组件开启 auto-height 之后,min-height 被设置了错误了兜底和赋值逻辑,导致初始化高度超过一行。应当透传用户设置即可。05bbe25

@wangshunnn wangshunnn added the platform:RN Mpx 跨端输出 RN label Nov 7, 2025
@wangshunnn wangshunnn changed the title fix(rn): iOS input 未触发 bindfocus fix(rn): iOS input 修复优化 bindfocus 逻辑 Nov 12, 2025
@wangshunnn wangshunnn changed the title fix(rn): iOS input 修复优化 bindfocus 逻辑 fix(rn): 修复优化 mpx-input 组件 bindfocus 逻辑 Nov 12, 2025
@wangshunnn wangshunnn changed the title fix(rn): 修复优化 mpx-input 组件 bindfocus 逻辑 fix(rn): 修复优化 mpx-input 组件相关问题 Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform:RN Mpx 跨端输出 RN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants