spree / spree

An open source eCommerce platform giving you full control and customizability. Modular and API-first. Build any eCommerce solution that your business requires.
https://spreecommerce.org
BSD 3-Clause "New" or "Revised" License
12.75k stars 4.92k forks source link

Admin Panel Mobile: Add States - It is not possible to add state to the created country on mobile devices #10886

Open jakublorent opened 3 years ago

jakublorent commented 3 years ago

Context

Admins can add custom country with custom states. First, a country is created with a state-based radio button selected. The second step is to add states do a custom country. Admin has to select a country, that has to be edited and after that new state can be added. In the case of desktop, state is added to the selected country, however in case of mobiles state is being added to the USA (default store country) instead of a newly created custom country.

Verified on Chrome Android and Safari iPhone 6s+.

Expected Behavior

Admin should be able to add states to other countries than the USA also, on both desktop and mobile devices.

Actual Behavior

Admin on mobile devices can't add states to created countries as states are being added to the USA.

Steps to Reproduce

Steps to reproduce:

  1. Go to admin panel on a mobile device
  2. Go to Country page
  3. Create a new country with the state-based option selected
  4. Go to States page
  5. Select created country from the list
  6. Add any state
  7. Notice that state was added to the USA not created country

Your Environment

Affected version: spee.4.3.0.alpha (ruby 2.7.2; rails 6.0.0) Configuration: gem ‘spree’ gem ‘spree_gateway’ gem ‘spree_auth_devise’ gem ‘spree_static_content’ gem ‘spree_related_products’ gem ‘spree_sitemap’ gem ‘spree_analytics_trackers’ gem ‘spree_braintree_vzero’ gem ‘spree_i18n’

zolzaya commented 3 years ago

+1 same problem for me