participedia / api

Website and API for Participedia V3
https://participedia.net
MIT License
20 stars 14 forks source link

Form language bug #1121

Closed paninee closed 2 years ago

paninee commented 2 years ago

Issue: Error message Once you enter text in English you can add other languages is showing up even there is english input when other language is selected on page load.

Step to reproduce:

  1. Enter english title or description.
  2. Select other language and leave the input blank
  3. Reload the page.
  4. Try to select other language from the dropdown menu.

The error will show up. The dropdown is disabled.

Current behaviour English is selected by default in each selector. But if user select different one, it will auto select on page load. But the value in input or textarea is always displaying english value.

Use cases and things to clarify If current locale is not english, french for example. Does the user need to fill in english before they enter inputs in their locale?