Skip to content

Commit

Permalink
Avoid error in tooltip config type checking with IE11.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-morvan committed Mar 1, 2019
1 parent ec1a3a1 commit 4506b87
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions contribs/gmf/src/controllers/AbstractDesktopController.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,14 @@ export class AbstractDesktopController extends AbstractAPIController {
const body = $('body');

// initialize tooltips
body.tooltip({
body.tooltip(/** @type {Bootstrap.TooltipOption} */ ({
container: 'body',
trigger: 'hover',
selector: '[data-toggle="tooltip"]'
});
selector: '[data-toggle="tooltip"]',

// Avoid error in config type checking with IE11
sanitizeFn: $injector.get('$sanitize')
}));

// deactivate tooltips on touch device
body.on('touchstart.detectTouch', () => {
Expand Down

0 comments on commit 4506b87

Please sign in to comment.