[Forms] Clear form

This commit is contained in:
Julia Radzhabova 2022-12-01 22:37:38 +03:00
parent 525b0f6223
commit 3bb818c326

View file

@ -1845,7 +1845,12 @@ define([
}
break;
case 'clear':
this.api && this.api.asc_ClearSpecialForm();
if (this.api) {
var props = this.api.asc_IsContentControl() ? this.api.asc_GetContentControlProperties() : null;
if (props) {
this.api.asc_ClearContentControl(props.get_InternalId());
}
}
break;
}
},