Skip to content

Commit b3d0123

Browse files
committed
ACP2E-2836: [Cloud] Investigate exception found in the log: InvalidArgumentException: Class does not exist in vendor/magento/module-rule/Model/ConditionFactory.php
1 parent fc6c7a3 commit b3d0123

File tree

1 file changed

+18
-14
lines changed
  • app/code/Magento/PageBuilder/view/adminhtml/web/js/form/element

1 file changed

+18
-14
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/form/element/html.js

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -59,24 +59,28 @@ define([
5959
name;
6060

6161
this.elements.forEach(function (item) {
62+
if (!$.contains(document.documentElement, item)) {
63+
// item was removed
64+
return;
65+
}
6266
switch (item.type) {
63-
case 'checkbox':
64-
result[item.name] = +!!item.checked;
65-
break;
67+
case 'checkbox':
68+
result[item.name] = +!!item.checked;
69+
break;
6670

67-
case 'radio':
68-
if (item.checked) {
69-
result[item.name] = item.value;
70-
}
71-
break;
71+
case 'radio':
72+
if (item.checked) {
73+
result[item.name] = item.value;
74+
}
75+
break;
7276

73-
case 'select-multiple':
74-
name = item.name.substring(0, item.name.length - 2); //remove [] from the name ending
75-
result[name] = _.pluck(item.selectedOptions, 'value');
76-
break;
77+
case 'select-multiple':
78+
name = item.name.substring(0, item.name.length - 2); //remove [] from the name ending
79+
result[name] = _.pluck(item.selectedOptions, 'value');
80+
break;
7781

78-
default:
79-
result[item.name] = item.value;
82+
default:
83+
result[item.name] = item.value;
8084
}
8185
});
8286

0 commit comments

Comments
 (0)