From 2d72b6821f5307d4c5d8efefd008b03335c11a80 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 22 Jun 2020 11:51:45 +0200 Subject: [PATCH] Preserve 'select' dropdown annotations on click --- www/common/common-ui-elements.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 7d829bdb0..265a61639 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -2294,7 +2294,9 @@ define([ value = val; var $val = $innerblock.find('[data-value="'+val+'"]'); var textValue = name || $val.html() || val; - $button.find('.cp-dropdown-button-title').html(textValue); + setTimeout(function () { + $button.find('.cp-dropdown-button-title').html(textValue); + }); }; $container.getValue = function () { return value || '';