-
Notifications
You must be signed in to change notification settings - Fork 1.9k
在Entry和Editor上输入,取消焦点和离开当前页后,键盘依然显示,并且影响页面。 #7588
Copy link
Copy link
Closed
Labels
area-controls-editorEditorEditorarea-controls-entryEntryEntryfixed-in-7.0.100fixed-in-7.0.101fixed-in-7.0.52Look for this fix in 7.0.52 SR1.1!Look for this fix in 7.0.52 SR1.1!fixed-in-8.0.0-preview.1.7762Look for this fix in 8.0.0-preview.1.7762!Look for this fix in 8.0.0-preview.1.7762!platform/androids/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Description
Description
在Entry或Editor上输入数据,点击其他空白处,键盘依然存在,焦点依然在输入框。
如果含有一个按钮点击之后,使用PushModal到另外的页面,键盘依然存在,使用back键后键盘消失,存在的键盘会截断新页面的显示。

Steps to Reproduce
- 使用默认模版,创建MauiApp。
- 在MainPage中创建Entry和Button(尽量创建在页面上方)。
- Button创建事件“Clicked="Button_Clicked"”
private async void Button_Clicked(object sender, EventArgs e)
{
await Navigation.PushModalAsync(new NewPage1());
} - 创建新页面NewPage.xaml,内容默认(可添加一个按钮,事件是await Navigation.PopModalAsync())
- 在安卓模拟器下运行。
- 将光标转移到Entry内,输入一些数据。
- 点击空白处,发现键盘依然存在。焦点依然在输入框中。
- 点击Button,转到新的页面,发现光标提示和键盘依然显示。
- 点击back按钮,键盘消失,显示部分上个页面的内容,当前页面内容被裁剪。
rec.mp4
Version with bug
6.0 Release Candidate 1 or older
Last version that worked well
Release Candidate 3 (current)
Affected platforms
Android
Affected platform versions
Android 11***
Did you find any workaround?
No response
Relevant log output
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-controls-editorEditorEditorarea-controls-entryEntryEntryfixed-in-7.0.100fixed-in-7.0.101fixed-in-7.0.52Look for this fix in 7.0.52 SR1.1!Look for this fix in 7.0.52 SR1.1!fixed-in-8.0.0-preview.1.7762Look for this fix in 8.0.0-preview.1.7762!Look for this fix in 8.0.0-preview.1.7762!platform/androids/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working