syncfusion / ej2-angular-ui-components

Syncfusion Angular UI components library offer more than 50+ cross-browser, responsive, and lightweight angular UI controls for building modern web applications.
https://www.syncfusion.com/angular-ui-components
Other
275 stars 115 forks source link

ERROR TypeError: this.cloneObject[this.mainElement.id] is undefined in DashboardLayouts component #272

Closed caslavhaslerrail closed 4 months ago

caslavhaslerrail commented 7 months ago

There is an error inside DashboardLayouts component that occurs after adding new panel but only if previous panel was dragged or resized

image

This happens because startRow property is not destroyed in removeAll() mehod here:

image

And because startRow property is not destroyed in removeAll() method, when updating layout in updatePanelLayout() method it is checking for swap and then it fails because before updating panel layout all panels are removed but startRow property is not destroyed.

image

I am using Angular 11 and SyncFusion DashboardLayout 19.4.52.

Can you please fix this because this component is mission critical for our project and fix seams like very trivial?

keerthanaRajendran commented 6 months ago

Hi @caslavhaslerrail

We have prepared a Dashboard Layout sample in Angular 11 and ensured it with the shared details. However, adding panels works fine after drag and resize without any console errors in both 19.4 and latest version(25.2).

Attached sample for reference.

If possible, please give a try on upgrading to our latest version of layouts package.

Sample with latest version: Syncfusion-Dashboard (forked) - StackBlitz

Regards, Keerthana R.

Dashbaord_Sample.zip

gsumankumar commented 4 months ago

We are closing this issue as part of our routine maintenance due to no activity on it for over a week. If the previously shared solution doesn't resolve the problem or if you have additional information to assist us, please feel free to reopen the issue. Thank you for your understanding.