[FIX] web: disable (new) sanitization of tooltips
Bootstrap 4.3.1 introduced tooltip sanitization. Odoo should normally use tooltips for secure content anyway, so this commit disables this sanitization. A proper analyse of our tooltip should however be done to know if sanitizing is needed (it can also be enabled case by case).
This commit is contained in:
+1
@@ -10,6 +10,7 @@ odoo.define('web.bootstrap.extensions', function () {
|
||||
$.fn.tooltip.Constructor.Default.placement = 'auto';
|
||||
$.fn.tooltip.Constructor.Default.fallbackPlacement = ['bottom', 'right', 'left', 'top'];
|
||||
$.fn.tooltip.Constructor.Default.html = true;
|
||||
$.fn.tooltip.Constructor.Default.sanitize = false;
|
||||
$.fn.tooltip.Constructor.Default.trigger = 'hover';
|
||||
$.fn.tooltip.Constructor.Default.container = 'body';
|
||||
$.fn.tooltip.Constructor.Default.boundary = 'window';
|
||||
|
||||
Reference in New Issue
Block a user