You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When having a country and region selected, and setting the country back to the Select Country value, it will reset the visual of the regions dropdown but not update the value following the onChange method.
using showDefaultOption={false} will fix this of course, but this stays a bug when not having this option set to false
The text was updated successfully, but these errors were encountered:
Hi @UndercoverNL! Actually state is controlled on your end, not the package itself. So on the onChange handler for the country you should check for a null/empty value and set the region state to blank in that condition too.
But this is a good point. I'll update the docs to make this explicitly shown.
When having a country and region selected, and setting the country back to the
Select Country
value, it will reset the visual of the regions dropdown but not update the value following theonChange
method.using
showDefaultOption={false}
will fix this of course, but this stays a bug when not having this option set tofalse
The text was updated successfully, but these errors were encountered: