-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
IsVisible false is not propagated to child controls #19139
Comments
I tried this and was not able to reproduce this. Archive.zip |
Ah, it happens on iOS when using the keyboard "next" button 😱 Seems to work with Tab on Android and Mac. |
@tj-devel709 thoughts? |
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. |
@mattleibow The keyboard "next" button is working on Android as expected but the code line
returns |
@omghb no, it shouldn't be false. IsVisible on parent stops its rendering and rendering of children, but it doesn't change their properties. |
@cucumber-sp That's not what I would expect. How would I find out (via code) that a Element is not visible (not rendered)? |
@omghb not sure if there's a built-in solution for this, but I guess you can just go up untile parent is null, if some control has IsVisible set to false return false otherwise true. Make it and extension function and that's it |
Yeah this behavior for the next button seems incorrect, I will take a look at this, thanks! |
@omghb I'm curious what the For ex: |
@bradencohen The |
Thanks for the improvement in MAUI 8.0.10: Unfortunately, this fixes the issue only partly. Still not working:
|
Description
If
IsVisible="False"
is set on aGrid
then the child controls still returntrue
forIsVisible
.On iOS this creates a bug as the keyboard "Next" button focus the invisible
Entry
an let the user type text into it.Steps to Reproduce
MainPage.xaml.cs
and replace the content with:MainPage.xaml
and replace the content withResult: Keyboard is shown for the hidden entry.
Link to public reproduction project repository
No response
Version with bug
8.0.3
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: