isaacplmann / ngx-tour

Product Tour Built in Angular

Home Page:https://isaacplmann.github.io/ngx-tour

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prevent popup from closing when you click outside or inside

dirttech opened this issue · comments

I am using ngx-tour-ng-bootstrap and it closes whenever click inside or outside the popover

A quick hack for this would be adding

::ng-deep .cdk-overlay-backdrop { pointer-events: none!important; }

But this will override the default material behavior related to modals and dialogs and it is not a very good solution.

I have the same problem and I hope to find a good solution. @isaacplmann

I found a solution that may help you.
In your Angular App -> index.html, after add this

<style> .cdk-overlay-container { position: unset; z-index: 0; } .cdk-overlay-backdrop { position: unset; z-index: 0; } </style>

You may need to adjust z-index style depend on your case.