dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22k stars 1.72k forks source link

Keyboard is opened when Searchbar is cancelled #15333

Open ziomek64 opened 1 year ago

ziomek64 commented 1 year ago

Hello, if I have typed something on searchbar and close keyboard by myself and then click X button on searchbar it opens up keyboard, which is very annoying. Make it up to the dev what happens on that or disable behavior

Android 13 ( can't test others) Newest MAUI on .net7 (7.0.86)

ghost commented 1 year ago

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

jfversluis commented 1 year ago

Hey @ziomek64, just to check if we're looking at the same thing: do you mean the x icon that clears the input of the SearchBar? Could you maybe add a screenshot or recording just so that we're super clear on what you mean?

Also, do you happen to know how that behaves on Xamarin.Forms? Did it work as you expect there?

As a workaround for the time being you could look at the KeyboardExtensions in the .NET MAUI Community Toolkit for more fine grained control over when the keyboard is shown or not.

ghost commented 1 year ago

Hi @ziomek64. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

ziomek64 commented 1 year ago

Hey @jfversluis, no I do not remember how it was in Xamarin.Forms. X button which clears input, yes. I'll take a look at toolkit in free time. https://github.com/dotnet/maui/assets/84880432/16ce65f0-32f3-4056-8ec2-0b06031f61e7

ziomek64 commented 1 year ago

I don't know if this is intended or not but seemed weird to me.

XamlTest commented 11 months ago

Verified this on Visual Studio Enterprise 17.8.0 Preview 2.0(8.0.0-rc.1.9171). Repro on Android 13.0-API33 with below Project: 15333.zip Keyboard