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

MAUI Entry in Windows always shows ClearButton if initially hidden and shown even if ClearButtonVisibility set to 'Never' #25038

Closed spenol closed 1 month ago

spenol commented 1 month ago

Description

If you have an cell on a form and it's initially set as visibility "False", when it it shown (e.g. set to "True"), the ClearButton is always shown, even if "ClearButtonVisibility" is set to "Never". This seems to happen even if you programatically set ClearButtonVisilibility to 'Never' in the code.

The issue does not happen with an cell, so I'm assuming it is a bug.

This happens in Windows - I haven't tested it with other platforms.

Steps to Reproduce

See description.

Link to public reproduction project repository

No response

Version with bug

9.0.0-rc.1.24453.9

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No.

Relevant log output

No response

MartyIX commented 1 month ago

This might be fixed by https://github.com/dotnet/maui/pull/25006.

DDHSchmidt commented 3 weeks ago

If this was supposed to be fixed by Release 8.0.92 then unfortunately the fix doesn't seem to cover all use cases. I have a pretty ease use-case that provokes the ClearButton to be shown, although ClearButtonVisilibility is set to 'Never':

Image

Reproduction project available here: https://github.com/DDHSchmidt/mauiEntryClearBroken

MartyIX commented 3 weeks ago

It might be better to file a new issue referencing this one.