I’m trying to execute the open method within the dropdown menu but I keep getting an error when it gets called. I am also a bit unsure of what exactly I am supposed to pass as a parameter for the method, which could be the source of the issue.
This is the error I get:
TypeError: Cannot read properties of null (reading ‘visualIndex’)
current code:
const ddm = hot.getPlugin(‘DropdownMenu’);
ddm.open({pageX: 0, pageY: 0})
the dropdown does open in the top left corner but still throws the error.
Thank you