chore: upgrade bootstrap to 3.4.1 (#928)

* chore: upgrade bootstrap to 3.4.1

* fix: add whitelist to the toolbox sanitizer

* fix: remove unnecessary console.log
This commit is contained in:
Róbert Kiss
2019-04-16 21:02:13 +02:00
committed by László Monda
parent 33c910d70c
commit 264752530f
3 changed files with 9 additions and 5 deletions
@@ -2,6 +2,9 @@
import { AfterContentInit, Directive, ElementRef, HostBinding, Input, OnChanges, SimpleChanges } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
const TOOLTIP_SANITAZER_WHITE_LIST = (<any>$.fn).tooltip.Constructor.DEFAULTS.whiteList;
TOOLTIP_SANITAZER_WHITE_LIST.div.push('style');
@Directive({
selector: '[data-toggle="tooltip"]'
})
@@ -39,7 +42,8 @@ export class TooltipDirective implements AfterContentInit, OnChanges {
placement: this.placement,
html: this.html,
template: this.getCustomTemplate(),
title: this.title
title: this.title,
whiteList: TOOLTIP_SANITAZER_WHITE_LIST
});
(<any>jQuery(this.elementRef.nativeElement)