[Pdf] Fix applying export value for checkbox (try to send empty value)

This commit is contained in:
Julia Radzhabova
2025-03-13 22:07:00 +03:00
parent a9a980b282
commit 2a64f9c68c

View File

@ -680,7 +680,7 @@ define([
onExportChanged: function(input, newValue, oldValue, e) {
this._state.Export = undefined;
if (this.api && !this._noApply && (newValue!==oldValue)) {
newValue && this.api.SetCheckboxFieldExportValue(newValue);
this.api.SetCheckboxFieldExportValue(newValue);
if (!e.relatedTarget || (e.relatedTarget.localName != 'input' && e.relatedTarget.localName != 'textarea') || !/form-control/.test(e.relatedTarget.className))
this.fireEvent('editcomplete', this);
}