Preserve 'select' dropdown annotations on click

pull/1/head
yflory 5 years ago committed by ansuz
parent 0e7e94b006
commit c32f0d61ce

@ -2299,7 +2299,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;
setTimeout(function () {
$button.find('.cp-dropdown-button-title').html(textValue); $button.find('.cp-dropdown-button-title').html(textValue);
});
}; };
$container.getValue = function () { $container.getValue = function () {
return value || ''; return value || '';

Loading…
Cancel
Save