Skip to content

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

Merged
Blackgan3 merged 1 commit intofix-drn-2.10.18from
fix-drn-2.10.18-input
Mar 11, 2026
Merged

fix(input): 修复输入框特定失焦场景#2434
Blackgan3 merged 1 commit intofix-drn-2.10.18from
fix-drn-2.10.18-input

Conversation

@wangshunnn
Copy link
Collaborator

@wangshunnn wangshunnn commented Mar 10, 2026

This pull request makes a targeted improvement to the Input component's keyboard avoidance logic. The main change ensures that the readyToShow flag is only set to true when switching focus between different input fields, preventing issues with repeated calls or incorrect focus behavior.

Keyboard avoidance logic improvement:

  • Updated the setKeyboardAvoidContext function in mpx-input.tsx to set readyToShow only when the focused input is different from the previous one, improving focus handling and preventing bugs with repeated or single focus events.

@wangshunnn wangshunnn added the version:beta 合并到非 master 分支(比如特定版本 2.10.13-beta 分支) label Mar 10, 2026
@Blackgan3 Blackgan3 merged commit 645f6e3 into fix-drn-2.10.18 Mar 11, 2026
0 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

version:beta 合并到非 master 分支(比如特定版本 2.10.13-beta 分支)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants