Skip to content

Commit

Permalink
fix: primefaces#14230 || BlockUI: entire page is blocked if "blocked"…
Browse files Browse the repository at this point in the history
… input contains true by default
  • Loading branch information
ashikjs committed Nov 29, 2023
1 parent c394bc0 commit ca6cb7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/components/blockui/blockui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ export class BlockUI implements AfterViewInit, OnDestroy {
constructor(@Inject(DOCUMENT) private document: Document, public el: ElementRef, public cd: ChangeDetectorRef, public config: PrimeNGConfig, private renderer: Renderer2) {}

ngAfterViewInit() {
if (this._blocked) this.block();

if (this.target && !this.target.getBlockableElement) {
throw 'Target of BlockUI must implement BlockableUI interface';
}
Expand Down

0 comments on commit ca6cb7a

Please sign in to comment.