Skip to content

Commit

Permalink
Fixed #4320
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici committed Nov 17, 2017
1 parent f685912 commit d24ddfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/components/dialog/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ let idx: number = 0;
@Component({
selector: 'p-dialog',
template: `
<div #container [ngClass]="{'ui-dialog ui-widget ui-widget-content ui-corner-all ui-shadow':true,'ui-dialog-rtl':rtl,'ui-dialog-draggable':draggable}" [ngStyle]="style" [class]="styleClass"
[style.display]="visible ? 'block' : 'none'" [style.width.px]="width" [style.height.px]="height" [style.minWidth.px]="minWidth" (mousedown)="moveOnTop()" [@dialogState]="visible ? 'visible' : 'hidden'"
<div #container [ngClass]="{'ui-dialog ui-widget ui-widget-content ui-corner-all ui-shadow':true,'ui-helper-hidden': !visible, 'ui-dialog-rtl':rtl,'ui-dialog-draggable':draggable}"
[ngStyle]="style" [class]="styleClass" [style.width.px]="width" [style.height.px]="height" [style.minWidth.px]="minWidth" (mousedown)="moveOnTop()" [@dialogState]="visible ? 'visible' : 'hidden'"
role="dialog" [attr.aria-labelledby]="id + '-label'">
<div #titlebar class="ui-dialog-titlebar ui-widget-header ui-helper-clearfix ui-corner-top"
(mousedown)="initDrag($event)" (mouseup)="endDrag($event)" *ngIf="showHeader">
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/tabview/tabview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class TabViewNav {
@Component({
selector: 'p-tabPanel',
template: `
<div [attr.id]="id" class="ui-tabview-panel ui-widget-content" [style.display]="selected ? 'block' : 'none'"
<div [attr.id]="id" class="ui-tabview-panel ui-widget-content" [ngClass]="{'ui-helper-hidden': !selected}"
role="tabpanel" [attr.aria-hidden]="!selected" [attr.aria-labelledby]="id + '-label'" *ngIf="!closed">
<ng-content></ng-content>
<p-templateLoader [template]="contentTemplate" *ngIf="contentTemplate&&(cache ? loaded : selected)"></p-templateLoader>
Expand Down

0 comments on commit d24ddfa

Please sign in to comment.