From c32f0d61ce2c06e643735de4572d4394e118be22 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 386353339..fc514ef3b 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -2299,7 +2299,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 || '';