[DE] Fix form settings for empty placeholder

This commit is contained in:
Julia Radzhabova 2020-11-02 13:24:35 +03:00
parent 278e09a741
commit 2ef290c53f

View file

@ -4284,8 +4284,9 @@ define([
}
if (specProps) {
if (isForm){ // for dropdown and combobox form control always add placeholder item
var text = props.get_PlaceholderText();
menu.addItem(new Common.UI.MenuItem({
caption : props.get_PlaceholderText(),
caption : (text.trim()!=='') ? text : this.txtEmpty,
value : '',
template : _.template([
'<a id="<%= id %>" tabindex="-1" type="menuitem" style="<% if (options.value=="") { %> opacity: 0.6 <% } %>">',