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

[Android][Auto Suggestion] Once keyboard is dismissed, it can't be re-opened #9004

Closed
MaximeDion-Work opened this issue Jun 10, 2022 · 5 comments
Assignees
Labels
area/autosuggestbox Categorizes an issue or PR as relevant to the AutoSuggestBox control difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification

Comments

@MaximeDion-Work
Copy link
Contributor

MaximeDion-Work commented Jun 10, 2022

Current behavior

After giving focus to a AutoSuggestBox and then dismissing the keyboard, the keyboard won't re-appear when re-giving the focus to the AutoSuggestBox as long as the AutoSuggestBox popup is still present

android_keyboard

Expected behavior

Keyboard should always appear when focus is given to AutoSuggestBox

How to reproduce it (as minimally and precisely as possible)

  1. Give focus to the AutoSuggestBox
  2. Enter some text to make suggestions appear
  3. Dismiss keyboard
  4. Give back focus to the AutoSuggestBox
  5. Notice keyboard doesn't come back

AutoSuggestBoxFocusIssue.zip

Workaround

None. But selecting a choice then regiving focus to AutoSuggestBox brings back the keyboard.

Works on UWP/WinUI

No response

Environment

Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia

NuGet package version(s)

Uno.UI 4.3.0-dev.254

Affected platforms

Android

IDE

Visual Studio 2022

IDE version

17.1.3

Relevant plugins

None

Anything else we need to know?

DevOps Issue

@MaximeDion-Work MaximeDion-Work added kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. labels Jun 10, 2022
@jeromelaban
Copy link
Member

@MaximeDion-Work could you reupload your sample? It seems the link did not work.

@MaximeDion-Work
Copy link
Contributor Author

Don't know what was wrong but it's working now.

@MartinZikmund
Copy link
Member

@MaximeDion-Work the problem is caused by Android's native Popup implementation. The workaround is to disable the native popups and use managed implementation instead (which is in most cases better):

FeatureConfiguration.Popup.UseNativePopup = false;

I will investigate whether it is possible to adjust the functionality for the native implementation as well.

@MartinZikmund MartinZikmund added the area/autosuggestbox Categorizes an issue or PR as relevant to the AutoSuggestBox control label Sep 27, 2022
@Marc-Antoine-Soucy
Copy link

Marc-Antoine-Soucy commented Nov 3, 2022

So, using this: FeatureConfiguration.Popup.UseNativePopup = false; worked, (and I think it's now the default, so we don't even need to set it) but there is a small issue this created. It doesnt happen in a very simple repro app, but I noticed in a larger app that the combobox popup vertical alignment changed a bit in some combobox.

image

@takla21
Copy link
Contributor

takla21 commented Nov 4, 2022

I've created this issue #10339 related to what @Marc-Antoine-Soucy has reported above. Since the original bug has been fixed, I'm closing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/autosuggestbox Categorizes an issue or PR as relevant to the AutoSuggestBox control difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification
Projects
None yet
Development

No branches or pull requests

5 participants