From 9e2411392c31b79f9ae5e1035aa0d10039c2e77a Mon Sep 17 00:00:00 2001 From: Yuriy Bakhtin Date: Thu, 14 Dec 2023 15:56:30 +0100 Subject: [PATCH] Fix displaying of alert when RichText is changed on refresh a page (#6736) --- CHANGELOG.md | 4 ++++ static/js/humhub/humhub.client.js | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 514cca2241..fe12acf1ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ HumHub Changelog ================ +1.15.2 (Unreleased) +------------------------- +- Fix #6708: Fix displaying of alert when RichText is changed on refresh a page + 1.15.1 (December 13, 2023) ------------------------- - Enh #6697: Make state badge customizable diff --git a/static/js/humhub/humhub.client.js b/static/js/humhub/humhub.client.js index 2ef6e5e1c4..b8440da6aa 100644 --- a/static/js/humhub/humhub.client.js +++ b/static/js/humhub/humhub.client.js @@ -422,6 +422,7 @@ humhub.module('client', function (module, require, $) { }; var formStateChanged = function ($form) { + $form.find(':focus').blur(); // Unfocus in order to update textarea value from RichText editor return $form.data('state') && $form.data('state') !== serializeFormState($form); };