Preserve 'select' dropdown annotations on click

pull/1/head
yflory 4 years ago
parent 8aebfac7ee
commit 2d72b6821f

@ -2294,7 +2294,9 @@ define([
value = val; value = val;
var $val = $innerblock.find('[data-value="'+val+'"]'); var $val = $innerblock.find('[data-value="'+val+'"]');
var textValue = name || $val.html() || 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 () { $container.getValue = function () {
return value || ''; return value || '';

Loading…
Cancel
Save