Closed minorsecond closed 3 years ago
Hi, dispatchEvent
is called on the element panel
argument passed to renderPanel
. Can you check that document.getElementById('ls_controller')
is returning an element.
Rookie mistake! I had to put it within window.onload = function () {}
Thank you for your help!
I'm trying to render the LS control in a div and am getting
Cannot read property 'dispatchEvent' of null
when attempting to do so. The full error reads:The relevant JS code is:
I suspect it has something to do with the options, but I haven't been able to find many examples as to how it should be structured. Am I doing this correctly?