Fix autoclose md popover when click on emoji list link inside

This commit is contained in:
kimsible 2020-08-12 13:33:43 +02:00 committed by Chocobozzz
parent fdd1296521
commit c537763a23
3 changed files with 3 additions and 2 deletions

View File

@ -10,7 +10,7 @@
(keyup.control.enter)="onValidKey()" (keyup.meta.enter)="onValidKey()" #textarea> (keyup.control.enter)="onValidKey()" (keyup.meta.enter)="onValidKey()" #textarea>
</textarea> </textarea>
<my-help class="markdown-guide" helpType="custom" iconName="markdown" tooltipPlacement="left auto" i18n-title title="Markdown compatible"> <my-help class="markdown-guide" helpType="custom" iconName="markdown" tooltipPlacement="left auto" autoClose="true" i18n-title title="Markdown compatible">
<ng-template ptTemplate="customHtml"> <ng-template ptTemplate="customHtml">
<span i18n>Markdown compatible that supports:</span> <span i18n>Markdown compatible that supports:</span>

View File

@ -32,7 +32,7 @@
[attr.aria-pressed]="isPopoverOpened" [attr.aria-pressed]="isPopoverOpened"
[ngbPopover]="tooltipTemplate" [ngbPopover]="tooltipTemplate"
[placement]="tooltipPlacement" [placement]="tooltipPlacement"
autoClose="outside" [autoClose]="autoClose"
(onHidden)="onPopoverHidden()" (onHidden)="onPopoverHidden()"
(onShown)="onPopoverShown()" (onShown)="onPopoverShown()"
> >

View File

@ -14,6 +14,7 @@ export class HelpComponent implements OnInit, OnChanges, AfterContentInit {
@Input() tooltipPlacement = 'right auto' @Input() tooltipPlacement = 'right auto'
@Input() iconName: GlobalIconName = 'help' @Input() iconName: GlobalIconName = 'help'
@Input() title = $localize`Get help` @Input() title = $localize`Get help`
@Input() autoClose = 'outside'
@ContentChildren(PeerTubeTemplateDirective) templates: QueryList<PeerTubeTemplateDirective<'preHtml' | 'customHtml' | 'postHtml'>> @ContentChildren(PeerTubeTemplateDirective) templates: QueryList<PeerTubeTemplateDirective<'preHtml' | 'customHtml' | 'postHtml'>>