From d9d2fd0ac3d30e13cffa6883d7bfbf2c6c7f4db3 Mon Sep 17 00:00:00 2001 From: aynsix Date: Wed, 26 Jan 2022 18:21:15 +0300 Subject: [PATCH] fix focus in ui dialog --- templates/web/prod/index.html.twig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/web/prod/index.html.twig b/templates/web/prod/index.html.twig index 9ff35a1669..a4b3ebd286 100644 --- a/templates/web/prod/index.html.twig +++ b/templates/web/prod/index.html.twig @@ -155,6 +155,13 @@ $('body').addClass('{{ cssfile }}'); }); + + // manage focus in a ui dialog + $(document).on('focusin', function(e) { + if ($(event.target).closest(".mce-window").length) { + e.stopImmediatePropagation(); + } + }); {% include "common/templates.html.twig" %} {% endblock %}