From 4c3e8426642b207398008c51d7798f6a5cfc036a Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 24 Apr 2017 13:55:03 +0200 Subject: [PATCH] Fix focus issues with the history input in ckeditor --- www/common/common-history.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/www/common/common-history.js b/www/common/common-history.js index b82c60f23..e006210a6 100644 --- a/www/common/common-history.js +++ b/www/common/common-history.js @@ -146,7 +146,10 @@ define([ 'type' : 'number', 'min' : '1', 'max' : states.length - }).val(c + 1).appendTo($nav); + }).val(c + 1).appendTo($nav).mousedown(function (e) { + // stopPropagation because the event would be cancelled by the dropdown menus + e.stopPropagation(); + }); var $label = $('