Preserve 'select' dropdown annotations on click

pull/1/head
yflory 2020-06-22 11:51:45 +02:00 committed by ansuz
parent 0e7e94b006
commit c32f0d61ce
1 changed files with 3 additions and 1 deletions

View File

@ -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 || '';