From d42f20cf38445c628d05c8acee2f464105cb3926 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 9 Dec 2021 15:08:42 +0100 Subject: [PATCH] Fix issue contact plus button sometimes gets stuck --- api/js/etemplate/et2_widget_description.ts | 5 +++++ api/js/etemplate/et2_widget_url.ts | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/api/js/etemplate/et2_widget_description.ts b/api/js/etemplate/et2_widget_description.ts index 330dee8896..b68e8d9f1c 100644 --- a/api/js/etemplate/et2_widget_description.ts +++ b/api/js/etemplate/et2_widget_description.ts @@ -436,6 +436,11 @@ export class et2_description extends expose(class et2_description extends et2_ba }) .tooltip("open"); }, {widget: this, span: this.span})); + this.span.on('mouseout', function(){ + if(jQuery(this).tooltip('instance')) { + jQuery(this).tooltip('close'); + } + }); } }){}; et2_register_widget(et2_description, ["description", "label"]); diff --git a/api/js/etemplate/et2_widget_url.ts b/api/js/etemplate/et2_widget_url.ts index 224c18192c..7e80cabcb1 100644 --- a/api/js/etemplate/et2_widget_url.ts +++ b/api/js/etemplate/et2_widget_url.ts @@ -452,6 +452,11 @@ export class et2_url_ro extends et2_valueWidget ); } },{widget: this, span: this.span, value: this.value})); + this.span.on('mouseout', function(){ + if(jQuery(this).tooltip('instance')) { + jQuery(this).tooltip('close'); + } + }); } break; }