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 28, 2023
1 parent 21a64f0 commit 8f09ca0
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 8f09ca0

Please sign in to comment.