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

在Entry和Editor上输入,取消焦点和离开当前页后,键盘依然显示,并且影响页面。 #7588

Closed
silmoonsone opened this issue May 29, 2022 · 7 comments · Fixed by #11356
Labels
area-controls-editor Editor area-controls-entry Entry fixed-in-7.0.52 Look for this fix in 7.0.52 SR1.1! fixed-in-7.0.100 fixed-in-7.0.101 fixed-in-8.0.0-preview.1.7762 Look for this fix in 8.0.0-preview.1.7762! platform/android 🤖 s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@silmoonsone
Copy link

Description

在Entry或Editor上输入数据,点击其他空白处,键盘依然存在,焦点依然在输入框。
如果含有一个按钮点击之后,使用PushModal到另外的页面,键盘依然存在,使用back键后键盘消失,存在的键盘会截断新页面的显示。
1

Steps to Reproduce

  1. 使用默认模版,创建MauiApp。
  2. 在MainPage中创建Entry和Button(尽量创建在页面上方)。
  3. Button创建事件“Clicked="Button_Clicked"”
    private async void Button_Clicked(object sender, EventArgs e)
    {
    await Navigation.PushModalAsync(new NewPage1());
    }
  4. 创建新页面NewPage.xaml,内容默认(可添加一个按钮,事件是await Navigation.PopModalAsync())
  5. 在安卓模拟器下运行。
  6. 将光标转移到Entry内,输入一些数据。
  7. 点击空白处,发现键盘依然存在。焦点依然在输入框中。
  8. 点击Button,转到新的页面,发现光标提示和键盘依然显示。
  9. 点击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

@silmoonsone silmoonsone added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels May 29, 2022
@silmoonsone
Copy link
Author

If the video can't play, please download and play.

@VincentBu
Copy link

@silmooninc, let me translate this issue into English, feel free to point out anything doesn't make sense:

Description
Display a modal page with the keyboard opened, the keyboard will not be closed and can partially covers the new modal page.
Closing keyboard by back button, the keyboard will be closed but leave the area blank.

Steps to Reproduce

  1. run this project: maui7588.zip
  2. type something in Entry control and make the keyboard opened
  3. click the button to display modal page
  4. click back button to hide the keyboard.

Expected:
image

Actual:
image

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

@VincentBu VincentBu added s/verified Verified / Reproducible Issue ready for Engineering Triage and removed s/needs-verification Indicates that this issue needs initial verification before further triage will happen labels May 31, 2022
@silmoonsone
Copy link
Author

silmoonsone commented May 31, 2022

YES, Because when using Chinese, the description is guaranteed to be clear and concise, and there is no ambiguity.

In the MainPage Page, click on the Entry control, the focus is in the control, at this time, if you click on the other empty space on the page, you cannot cancel the focus of the Entry, and the keyboard is always there.
On Android you can cancel the focus by pressing the Back key, and under iOS you can't cancel the focus anyway, which becomes my biggest trouble.

If you enter the cursor, the handle is displayed. The handle also remains on the new page.

1
2

@Eilon Eilon added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 31, 2022
@silmoonsone
Copy link
Author

此问题依然存在,并且在Android和iOS上都有错误。

@solayuta
Copy link

两个月过去了 没解决方案吗?无尽的BUG

@silmoonsone
Copy link
Author

两个月过去了 没解决方案吗?无尽的BUG

好像根本没人吊这个BUG,这个问题不解决无法把现有的Xamarin迁移过来。。。

@PureWeen
Copy link
Member

Duplicate of #10978

@PureWeen PureWeen marked this as a duplicate of #10978 Nov 11, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Dec 11, 2022
@samhouts samhouts added the fixed-in-7.0.52 Look for this fix in 7.0.52 SR1.1! label Feb 16, 2023
@samhouts samhouts added this to the .NET 7 + Servicing milestone Feb 16, 2023
@samhouts samhouts added the fixed-in-8.0.0-preview.1.7762 Look for this fix in 8.0.0-preview.1.7762! label Feb 22, 2023
@Eilon Eilon removed the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-editor Editor area-controls-entry Entry fixed-in-7.0.52 Look for this fix in 7.0.52 SR1.1! fixed-in-7.0.100 fixed-in-7.0.101 fixed-in-8.0.0-preview.1.7762 Look for this fix in 8.0.0-preview.1.7762! platform/android 🤖 s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants