Skip to content

Commit

Permalink
visibility bug fix, #715
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jun 20, 2018
1 parent 9f65bf4 commit 905b449
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/accessibility/AccessibleInstance.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,11 @@ define( function( require ) {
* @returns {boolean}
*/
isGloballyVisible: function() {
if ( this.peer.isVisible() ) {
return true;

// If this peer is hidden, then return because that attribute will bubble down to children,
// otherwise recurse to parent.
if ( !this.peer.isVisible() ) {
return false;
}
if ( this.parent ) {
return this.parent.isGloballyVisible();
Expand Down

0 comments on commit 905b449

Please sign in to comment.