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 e8ec0cf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion contribs/gmf/src/controllers/AbstractDesktopController.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import olStyleStroke from 'ol/style/Stroke.js';
import olStyleStyle from 'ol/style/Style.js';
import olStyleText from 'ol/style/Text.js';


/**
* Desktop application abstract controller.
*
Expand Down Expand Up @@ -99,7 +100,10 @@ export class AbstractDesktopController extends AbstractAPIController {
body.tooltip({
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
Expand Down

0 comments on commit e8ec0cf

Please sign in to comment.