Skip to content

Commit

Permalink
FIO-7800: fixed an issue where server returns an error when submittin…
Browse files Browse the repository at this point in the history
…g form with editgrid (#5471)
  • Loading branch information
TanyaGashtold authored Jan 23, 2024
1 parent 3901e86 commit c73cfd7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/_classes/component/Component.js
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,11 @@ export default class Component extends Element {
detach() {
// First iterate through each ref and delete the component so there are no dangling component references.
_.each(this.refs, (ref) => {
if (typeof ref === NodeList) {
if (!ref) {
return;
}

if (window && typeof ref === window.NodeList) {
ref.forEach((elem) => {
delete elem.component;
});
Expand Down

0 comments on commit c73cfd7

Please sign in to comment.