Page MenuHomePhabricator

Changing languages causes tabs to switch
Open, Needs TriagePublicBUG REPORT


In views with several tabs, such as "Add or remove tools", changing the language while on any other tab than the first one causes the view to switch to the first tab.

To reproduce:

  1. Go to "Add or Remove tools"
  2. Click the second tab ("Submit toolinfo.json url")
  3. Change the language to French
  4. View bounces back to the first tab ("Create a new tool")

If you have filled in part of the form before you change languages and get bounced back to the first tab, the data you have filled in persists, making it seem that the form component itself doesn't reload.

Event Timeline

I think this is related to the use of :key="item.label" that I noticed in T296283#7525393. The label is not a stable identifier because it is a localized string.