[DE] Fix empty placeholder for form controls

This commit is contained in:
Julia Radzhabova 2020-10-30 22:38:52 +03:00
parent 74d9fb121a
commit 13c54668b7
2 changed files with 2 additions and 2 deletions

View file

@ -532,7 +532,7 @@ define([ 'text!documenteditor/main/app/template/ControlSettingsDialog.template',
var props = new AscCommon.CContentControlPr();
props.put_Alias(this.txtName.getValue());
props.put_Tag(this.txtTag.getValue());
props.put_PlaceholderText(this.txtPlaceholder.getValue());
props.put_PlaceholderText(this.txtPlaceholder.getValue() || ' ');
props.put_Appearance(this.cmbShow.getValue());
if (this.isSystemColor) {

View file

@ -337,7 +337,7 @@ define([
onPlaceholderChanged: function(input, newValue, oldValue, e) {
if (this.api && !this._noApply) {
var props = this._originalProps || new AscCommon.CContentControlPr();
props.put_PlaceholderText(newValue);
props.put_PlaceholderText(newValue || ' ');
this.api.asc_SetContentControlProperties(props, this.internalId);
this.fireEvent('editcomplete', this);
}