web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Visibility of componen...
Power Apps
Unanswered

Visibility of component child items not refreshing when component itself is not visible

(1) ShareShare
ReportReport
Posted on by 2
Hello,
 
I have a component (dialog box) whose visibility is controlled locally via context variables and buttons.
Inside the component, I have containers whose visibility are controlled by another text variable (Mode)
 
Then I have two buttons, each setting the text variable (Mode) to something different.
The buttons also change the context variable to make the component visible.
 
The first time a button is pressed (setting Mode = "A") and a component is made visible, everything renders correctly.
The component is then closed (changed to be not visible) in between.
If the second button is pressed (setting Mode ="B") and the component is made visible, then the controls that depend on Mode ="B" to be visible are not displayed. (<-- This is the bug)
If the component is then closed (changed to be not visible again) and then the FIRST button is pressed (setting Mode = "A" again) then everything renders as intended for Mode = "A"
However, interestingly, if the component is NOT closed in between changing Mode from "A" to "B" then everything will render correctly (i.e. visibility will change appropriately for each button.
**Therefore, this bug appears to be an issue with lack of rendering/refreshing visibility of child items when the parent (component) is not visible.**
 
For my app/component to be used effectively, the component needs to be hidden in between the different mode changes.
 
I've tried almost every permutation/simplification of the component and nothing works, leading me to strongly believe that this is a bug.
 
Thank you!

 
Categories:
I have the same question (0)
  • CN-20010726-0 Profile Picture
    2 on at
    @Michael E. Gernaey Thank you for input!  The visibility of the controls is dependent on a property that is fed by an external variable.  I even tried stripping down the component to two simple colored containers, and was able to reproduce the problem, so I'm convinced that this is a Power Apps issue... and the problem does not occur if the component remains visible when the control visibility is altered.  I guess I'll just have to break down the component into two separate ones, though not ideal.
  • Michael E. Gernaey Profile Picture
    53,692 Super User 2025 Season 2 on at
    Hi,
     
    How have you implemented the invis/noninvis? Did you create a property or are you just using the Invis property or your custom one.
     
    You should not be using External variables to directly impact the visibility unless its a Property. Meaning, in your component don't have it look at that variable, have it look at its own personal property that you create.
     
    are you using the OnReset or visible properties in the Component that is accidentally changing what you need it to do, which would explain why if you dont make it invis in between,m then it works. Sounds like its rsesetting somewhere,.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 421

#2
WarrenBelz Profile Picture

WarrenBelz 365 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 339 Super User 2025 Season 2

Last 30 days Overall leaderboard