Closed s-rd closed 4 years ago
Apparently I was a bit too quick in making an issue for this 😅 Of course, I was initializing the selectMenu before the DOM had rendered completely, so it couldn't find anything.
So, if anyone stumbles upon this, it's fixed by making sure to wait for the HTML to render first!
Hey! First of all, great job on making this awesome resource 👏
I'm having some issues with using the Select menu component in the way it's presented on the docs. I'm importing the whole
figma-plugin-ds.min.js
and then running the code in the docs to initialize, i.e.:I'm doing this
The markup is also the same as in the docs:
Then I get this error
But when I do this,
figma-plugin-ds.min.js
is throwing this error:This seems easy enough to work around, but I can't help but feel like I'm doing something silly :)
Has anyone else stumbled upon this issue? Or alternatively, does someone know how to initialize it properly?