From 244ae33ad61cd97ef15cb5c27e129462174816c8 Mon Sep 17 00:00:00 2001 From: Anne-Cath Date: Mon, 12 Aug 2024 14:36:32 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B07745=20-=20Portal:=20Fix=20js=20error=20?= =?UTF-8?q?in=20firefox=20when=20leaving=20object=20modal=20form=20with=20?= =?UTF-8?q?ckeditor=20form?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2.x/itop-portal-base/portal/public/js/bootstrap-patches.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datamodels/2.x/itop-portal-base/portal/public/js/bootstrap-patches.js b/datamodels/2.x/itop-portal-base/portal/public/js/bootstrap-patches.js index f4ae87988..b0319a110 100644 --- a/datamodels/2.x/itop-portal-base/portal/public/js/bootstrap-patches.js +++ b/datamodels/2.x/itop-portal-base/portal/public/js/bootstrap-patches.js @@ -31,7 +31,7 @@ $.fn.modal.Constructor.prototype.enforceFocus = function () { var $parent = $(e.target.parentNode); if ($modalElement[0] !== e.target && !$modalElement.has(e.target).length && !$parent.hasClass('ck-input')) { - e.target.focus() + $(e.target.activeElement).focus(); } }) };