ng-bootstrap / ng-bootstrap

Angular powered Bootstrap

Home Page:https://ng-bootstrap.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Popover autoClose not dynamic

tjw02 opened this issue · comments

Please remember, the issues forum is NOT for support requests. It is for bugs and feature requests only.
Please read https://github.com/ng-bootstrap/ng-bootstrap/blob/master/CONTRIBUTING.md and search
existing issues (both open and closed) prior to opening any new issue and ensure you follow the instructions therein.

Bug description:

Hi,

We have a need for the popover to have a dynamically working autoClose property. Currently looking at the ngbootstrap, the autoClose value is being used only during the opening of the popover. However, we have the use case where some action means that the popover can temporarily not be closed for the popover that is currently being displayed. An example use case is if some action inside the popover triggers a server call, and we want to keep the popover open with a small spinner in the corner until the server response is returned.

Cheers,
Tom.

Link to minimally-working StackBlitz that reproduces the issue:

You can fork a StackBlitz from one of our demos and use it as a starting point.

Please note that we can not act on bug reports without a minimal reproduction scenario in a StackBlitz. Here is why:
https://github.com/ng-bootstrap/ng-bootstrap#you-think-youve-found-a-bug

Versions of Angular, ng-bootstrap and Bootstrap:

Angular:
17.2
ng-bootstrap:
16.0
Bootstrap:
5.3

See comment here #4683