Skip to content

Commit

Permalink
Do not set hidden attribute on hide/collapse (ampproject#7879)
Browse files Browse the repository at this point in the history
  • Loading branch information
aghassemi authored and mrjoro committed Apr 28, 2017
1 parent fea6f7e commit b75a87b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/service/resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,6 @@ export class Resource {
*/
completeCollapse() {
toggle(this.element, false);
this.element.setAttribute('hidden', '');
this.layoutBox_ = layoutRectLtwh(
this.layoutBox_.left,
this.layoutBox_.top,
Expand Down
1 change: 0 additions & 1 deletion src/service/standard-actions-impl.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ export class StandardActions {
target./*OK*/collapse();
} else {
toggle(target, false);
target.setAttribute('hidden', '');
}
});
}
Expand Down

0 comments on commit b75a87b

Please sign in to comment.