HomeServicesOfAmerica / styled-material-components

Styled Components implementation of Material Design
Other
71 stars 51 forks source link

fix(dropdown menu): pull options from props #296

Closed petegivens closed 6 years ago

petegivens commented 6 years ago

This PR makes the TextField dropdown menu render its list of options from props instead of state. Previously, if the options passed to the component changed, they would only update if the component unmounted. This allows the menu options to change in response to changing props.

merlinbot commented 6 years ago
Messages
:book: ### Modified Components * DropdownMenu ### PR Application * [styled-material-components-pr-296](https://styled-material-components-pr-296.now.sh)

Generated by :no_entry_sign: dangerJS