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
22.24k stars 1.76k forks source link

In the component Entry, ClearButtonVisibility="WhileEditing" doesn't work. #25225

Open damusthe opened 1 month ago

damusthe commented 1 month ago

Description

Using Entry component, with the property ClearButtonVisibility="WhileEditing" doesn't work.

Context : VS 2022 17.11.5 Net 8.0 NuGet Microsoft.Maui.Controls 8.0.91 Emulator Pixel 5 Android 14 API 34

Steps to Reproduce

Create a new MAUI default project in .Net 8. In the MainPage.xaml, add a component Entryand add the property ClearButtonVisibility="WhileEditing". <Entry Text="text to clear" ClearButtonVisibility="WhileEditing"/>

Write some text an try to click on the cross/clear button : Nothing happens.

Link to public reproduction project repository

No response

Version with bug

Unknown/Other

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

No response

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No

Relevant log output

No response

similar-issues-ai[bot] commented 1 month ago

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

ninachen03 commented 1 month ago

Verified this issue with Visual Studio Enterprise 17.11.5 (8.0.91 &8.0.3), it can repro at android platform. I did more verification on Visual Studio 17.12.0 Preview 2.1 (8.0.91), it can not reproduced, so this issue may fixed on 17.12.0 Preview 2.1(8.0.91).