Is there a way to hide the custom dropdown menu whenever I click outside of it?
After trying the code below, I noticed that it hides even if I click on an element inside the dropdown menu:
<button class="btn btn-primary btn-sm mt-1" type="button" id="dropdownMenuButton" data-toggle="dropdown" (click)="toggle()" (blur)="toggle()" aria-haspopup="true"
aria-expanded="false">
Tools
</button>