- Issue created by @abhinesh
gets builder.js?s82dv8:331 Uncaught TypeError: Cannot read properties of undefined (reading 'indexOf') on node edit form.
When a paragraph is added inside a node using a paragraph reference field, and inside the manage form display the mode is changed to modal form in the widget settings, the above error occurs.
There should be a check for this:
Change
if ($dialog.attr('id').indexOf('lpb-dialog-') === 0) {
if ($dialog.dialog('option', 'buttons').length > 0) {
return;
}
to
if ($dialog?.attr('id')?.indexOf('lpb-dialog-') === 0) {
if ($dialog.dialog('option', 'buttons').length > 0) {
return;
}
Active
2.0
Code