You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
The cdkoverlay doesn't close on click of the trigger button after it has been opened, if both (overlayOutsideClick)="isOpen=false" is added to the overlay template and (click)="isOpen = !isOpen" is added to the trigger button.
I can at least confirm this behavior.
The moment you use (overlayOutsideClick) on the template and the template gets called once, it seems the original (click) on the button stops firing.
Is this a regression?
The previous version in which this bug was not present was
No response
Description
The cdkoverlay doesn't close on click of the trigger button after it has been opened, if both
(overlayOutsideClick)="isOpen=false"
is added to the overlay template and(click)="isOpen = !isOpen"
is added to the trigger button.Reproduction
StackBlitz link: https://stackblitz.com/edit/nxazcw?file=src%2Fexample%2Fcdk-overlay-basic-example.html
Steps to reproduce:
Expected Behavior
The overlay should close on click of the trigger button as well as when the user clicks anywhere outside the overlay.
Actual Behavior
If the ability the close the overlay by clicking anywhere outside is added, clicking on the button again doesn't close the overlay.
Environment
The text was updated successfully, but these errors were encountered: