Welcome to the JavaScript feedback portal. We’re happy you’re here! If you have feedback on how to improve the JavaScript, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

2
Votes

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