Add popover autoclose

pull/974/head
Chocobozzz 2018-08-27 11:52:14 +02:00
parent 52831c6fef
commit 0bd84f8bde
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 7 additions and 2 deletions

View File

@ -3,7 +3,6 @@
.form-group { .form-group {
display: flex; display: flex;
align-items: center;
.form-group-checkbox { .form-group-checkbox {
display: flex; display: flex;
@ -20,4 +19,9 @@
margin-right: 10px; margin-right: 10px;
} }
} }
my-help {
position: relative;
top: -2px;
}
} }

View File

@ -20,6 +20,7 @@
[attr.aria-pressed]="isPopoverOpened" [attr.aria-pressed]="isPopoverOpened"
[ngbPopover]="tooltipTemplate" [ngbPopover]="tooltipTemplate"
[placement]="tooltipPlacement" [placement]="tooltipPlacement"
[autoClose]="true"
(onHidden)="onPopoverHidden()" (onHidden)="onPopoverHidden()"
(onShown)="onPopoverShown()" (onShown)="onPopoverShown()"
></span> ></span>

View File

@ -1,6 +1,6 @@
<div class="video-feed"> <div class="video-feed">
<span <span
*ngIf="syndicationItems.length !== 0" [ngbPopover]="feedsList" placement="bottom" *ngIf="syndicationItems.length !== 0" [ngbPopover]="feedsList" [autoClose]="true" placement="bottom"
class="icon icon-syndication" role="button" class="icon icon-syndication" role="button"
></span> ></span>