diff --git a/addons/web/static/src/legacy/js/libs/bootstrap.js b/addons/web/static/src/legacy/js/libs/bootstrap.js index 9854b47a925..3da9db81d49 100644 --- a/addons/web/static/src/legacy/js/libs/bootstrap.js +++ b/addons/web/static/src/legacy/js/libs/bootstrap.js @@ -78,8 +78,15 @@ $.fn.tooltip.Constructor.prototype.show = function () { // Overwrite bootstrap tooltip method to prevent showing 2 tooltip at the // same time $('.tooltip').remove(); - - return bootstrapShowFunction.call(this); + const errorsToIgnore = ["Please use show on visible elements"]; + try { + return bootstrapShowFunction.call(this); + } catch (error) { + if (errorsToIgnore.includes(error.message)) { + return 0; + } + throw error; + } }; /* Bootstrap scrollspy fix for non-body to spy */