Fixed: Resolved tooltip rendering issue caused by conflicts between jQuery and Bootstrap tooltip libraries.

Co-authored-by: Name <sumit201@webkul.in>
This commit is contained in:
amit sharma
2026-09-09 16:22:28 +05:30
parent 80e28f5657
commit 0f6436617c
4 changed files with 28 additions and 16 deletions

View File

@@ -2895,18 +2895,6 @@ class AdminControllerCore extends Controller
{
}
public function addJqueryUI($component, $theme = 'base', $check_dependencies = true)
{
parent::addJqueryUI($component, $theme, $check_dependencies);
if ($component === 'ui.tooltip' || (is_array($component) && in_array('ui.tooltip', $component))) {
$bootstrap_js = Media::getJSPath(__PS_BASE_URI__.$this->admin_webpath.'/themes/'.$this->bo_theme.'/js/vendor/bootstrap.min.js');
if ($bootstrap_js) {
$this->js_files[] = $bootstrap_js.'?reclaim_tooltip=1';
}
}
}
public function setMedia()
{
//Bootstrap
@@ -2928,6 +2916,7 @@ class AdminControllerCore extends Controller
//loads specific javascripts for the admin theme
$this->addJS(__PS_BASE_URI__.$this->admin_webpath.'/themes/'.$this->bo_theme.'/js/vendor/bootstrap.min.js');
$this->addJS(__PS_BASE_URI__.$this->admin_webpath.'/themes/'.$this->bo_theme.'/js/bootstrap-tooltip-alias.js');
$this->addJS(__PS_BASE_URI__.$this->admin_webpath.'/themes/'.$this->bo_theme.'/js/vendor/modernizr.min.js');
$this->addJS(__PS_BASE_URI__.$this->admin_webpath.'/themes/'.$this->bo_theme.'/js/modernizr-loads.js');
$this->addJS(__PS_BASE_URI__.$this->admin_webpath.'/themes/'.$this->bo_theme.'/js/vendor/moment-with-langs.min.js');