title: Angular 11 & ngbPopover - Changing autoClose mode on clicking a button inside the popover
body: <p>I am using the ngbPopover along with angular 11 to show a popup for which the behavior has to be changed on the fly.</p>
  <p>The default autoClose behavior of the popup should be 'outside', which means that any outside click on the popup will close it.</p>
  <p>However, when the user clicks a button inside the popup, it will 'transform' and the user can only now close it by clicking on an update button inside it.</p>
  <p>Can anyone advise on how this can be done? Below is my trigger code for your reference. I have tried to change the autoClose property on the popover instance but to no avail.</p>
  <pre><code>&lt;div container=&quot;body&quot; triggers=&quot;manual&quot; #existingCommentPopover=&quot;ngbPopover&quot;
                              *ngIf=&quot;isExistingCommentShown(element)&quot;
                              (mouseenter)=&quot;editExistingComment(element, existingCommentPopover)&quot;
                              class=&quot;comment-triangle existing-comment-triangle&quot; 
                              placement=&quot;top [autoClose]=&quot;'outside'&quot;
                              [ngbPopover]=&quot;existingCommentsContent&quot; [popoverClass]=&quot;'new-comment-popup'&quot;&gt;&lt;/div&gt;
  
  </code></pre>