thomas-lowry / figma-plugin-ds

A small lightweight design system for use in Figma Plugins
MIT License
693 stars 71 forks source link

The menu of a <select> control doesn't refresh when it is dynamically populated with <option> #23

Closed Jeremy-Knudsen closed 4 years ago

Jeremy-Knudsen commented 4 years ago

I have a select control that uses the figma-plugin-ds CSS. When I dynamically populate it with multiple option elements using JavaScript, the menu only shows the options that existed before adding them (even though in the code they are there). Is there a way to force the control to refresh?

If I use a native, non-skinned, select control I can see the dynamically added option elements.

thomas-lowry commented 4 years ago

@Jeremy-Knudsen Working to address this and just submitted a PR with a redesigned select menu. Getting a couple more things ready and then I will merge.

PR: https://github.com/thomas-lowry/figma-plugin-ds/pull/25

thomas-lowry commented 4 years ago

Fixed in the latest release which is now available as an npm package.