Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropdowns do not update when values are set in backend #63

Open
Webberjo opened this issue Nov 13, 2017 · 1 comment
Open

Dropdowns do not update when values are set in backend #63

Webberjo opened this issue Nov 13, 2017 · 1 comment

Comments

@Webberjo
Copy link

Webberjo commented Nov 13, 2017

If I set my country dropdown's value to "Canada" in the backend, the dropdown shows the selected country as "Canada", but the region dropdown still displays "-" as if a country hasn't been selected.

Update
To get the region dropdown to populate, I had to do this:

document.getElementById('country').dispatchEvent(new Event('change'));
@papagunit
Copy link

Thank you! This is exactly what I needed. I have a separate prepopulation script that puts a value in the country field, but it doesn't trigger the region specific list, so the region stays uninitialized, and results in not it being populated with the other given value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants