Skip to content

fix(input): 修复输入框特定失焦场景#2442

Open
wangshunnn wants to merge 1 commit intomasterfrom
fix-2.10.18-input
Open

fix(input): 修复输入框特定失焦场景#2442
wangshunnn wants to merge 1 commit intomasterfrom
fix-2.10.18-input

Conversation

@wangshunnn
Copy link
Copy Markdown
Collaborator

本次拉取请求针对 Input 组件中的键盘避让逻辑进行了针对性优化。该改动确保 readyToShow 标志仅在切换不同输入框焦点时设为 true,避免了重复调用或焦点处理错误的问题。

键盘避让逻辑更新说明:

  • mpx-input.tsx 文件中,更新了 setKeyboardAvoidContext 函数,使其仅在当前输入框引用与之前不同时才将 readyToShow 设为 true,从而优化输入框的聚焦和失焦行为。

@wangshunnn wangshunnn added the platform:RN Mpx 跨端输出 RN label Mar 12, 2026
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.

1 participant