Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
caslavhaslerrail opened this issue Apr 25, 2024 · 1 comment
Labels
dashboard-layout Dashboard Layout component

Comments

@caslavhaslerrail
Copy link

caslavhaslerrail commented Apr 25, 2024

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?

@gsumankumar gsumankumar added the dashboard-layout Dashboard Layout component label May 9, 2024
@keerthanaRajendran
Copy link

keerthanaRajendran commented May 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dashboard-layout Dashboard Layout component
Projects
None yet
Development

No branches or pull requests

3 participants