Hi,
In React app when adding components to Dashboard panels using PanelDirective and then resizing browser window an error is displayed:
panelElements is null
./node_modules/@syncfusion/ej2-layouts/src/dashboard-layout/dashboard-layout.js/DashboardLayout.prototype.removeResizeClasses@http://localhost:3000/static/js/bundle.js:28002:25
./node_modules/@syncfusion/ej2-layouts/src/dashboard-layout/dashboard-layout.js/DashboardLayout.prototype.refresh@http://localhost:3000/static/js/bundle.js:26971:10
This mostly happens when navigating to a different page using BrowserRouter, then returning back to the page with DashboardPanel and resizing window. Same happens in Chrome, Firefox and Edge.
A simple function like this would trigger an error:
function Test() {
return (
<div>Test</div>
)
}
PanelDirective:
--PanelDirective sizeX={2} sizeY={2} row={1} col={0} content={Test as any}--
Thanks,
Sasha