issues
search
communitiesuk
/
gov-uk-dash-react-components
GovUK React components for Dash - GDS. This also includes autocomplete
Other
9
stars
1
forks
source link
Fix dropdown state not updating the selected values with new props
#4
Closed
chopkinsmade
closed
2 years ago
chopkinsmade
commented
2 years ago
Modify the usage.py file to have a realistic test scenario for multiple dropdowns
Use a
useEffect
function to detect when the
value
property has changed and is set to null, and reset the options
useEffect
function to detect when thevalue
property has changed and is set to null, and reset the options