mirror of
https://github.com/ONLYOFFICE/sdkjs-forms.git
synced 2026-02-10 09:55:48 +08:00
Fix bug #77996
Don't allow to insert other forms inside a fixed labeled checkbox
This commit is contained in:
4
api.js
4
api.js
@ -737,6 +737,10 @@ window["AscOForm"] = window.AscOForm = AscOForm;
|
||||
{
|
||||
let form = logicDocument.GetContentControl();
|
||||
|
||||
let mainForm = form ? form.GetMainForm() : null;
|
||||
if (mainForm && mainForm.IsLabeledCheckBox())
|
||||
return mainForm.MoveCursorOutsideForm(false);
|
||||
|
||||
if (!form || !form.IsForm() || (form.IsComplexForm() && !isComplex))
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user