InfoPopover: Fixes transclude undefined error (#17063)

This commit is contained in:
Torkel Ödegaard 2019-05-14 15:28:09 +02:00 committed by GitHub
parent 74a31bd9b4
commit 6c7224c74d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ export function infoPopover() {
restrict: 'E', restrict: 'E',
template: '<i class="fa fa-info-circle"></i>', template: '<i class="fa fa-info-circle"></i>',
transclude: true, transclude: true,
link: (scope: any, elem: any, attrs: any, transclude: any) => { link: (scope: any, elem: any, attrs: any, ctrl: any, transclude: any) => {
const offset = attrs.offset || '0 -10px'; const offset = attrs.offset || '0 -10px';
const position = attrs.position || 'right middle'; const position = attrs.position || 'right middle';
let classes = 'drop-help drop-hide-out-of-bounds'; let classes = 'drop-help drop-hide-out-of-bounds';