From 20255c4a6f3d44a9cfa406940ddb7c0510ac422d Mon Sep 17 00:00:00 2001 From: Egor Volvachev Date: Sat, 25 Jun 2022 17:50:50 +0300 Subject: [PATCH] fix(primeng/dropdown): fix `show` logic Fixes #11648. --- src/app/components/dropdown/dropdown.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/components/dropdown/dropdown.ts b/src/app/components/dropdown/dropdown.ts index b5411c0df62..3e28c33fa5e 100755 --- a/src/app/components/dropdown/dropdown.ts +++ b/src/app/components/dropdown/dropdown.ts @@ -687,6 +687,7 @@ export class Dropdown implements OnInit,AfterViewInit,AfterContentInit,AfterView show() { this.overlayVisible = true; + this.preventDocumentDefault = true; this.cd.markForCheck(); }