Hi there,
I'm currently trying to replicate the DashboardLayout basic sample in both Vue 3 and React but seem to encounter the same issue relating to the draggable.js library included as part of the @syncfusion/ej2-base dependency.
When using the default component without specifying a value for :allowDragging="", or when specifying the value as "true", I get the following:
Uncaught TypeError: Cannot read properties of undefined (reading 'classList')
at Draggable2.setDragArea (draggable.js:685:86)
at dashboard-layout.js:2096:21
at Proxy.forEach ()
at DashboardLayout2.updateDragArea (dashboard-layout.js:2094:29)
at DashboardLayout2.render (dashboard-layout.js:196:14)
at Component2.appendTo (component.js:185:18)
at ComponentBase2.mounted (component-base.js:111:27)
at runtime-core.esm-bundler.js:2710:40
at callWithErrorHandling (runtime-core.esm-bundler.js:155:22)
at callWithAsyncErrorHandling (runtime-core.esm-bundler.js:164:21)
However, this error (and any warning regarding unhandled component errors) disappear when setting :allowDragging="false" - this behaviour is replicated between both React and Vue using the relevant packages.
I have attempted using both Vite and Babel (e.g npm init vue@3 and using vue-cli as per the sample pages), the error persists across both approaches.
Is this a bug I should be reporting, or am I doing something wrong? Adding a class to the DashboardLayout does not prevent the error.
Kind regards,
Tom