MenuTagMultiselectWidget loses the first selected item when you tab away from the field.
Steps to reproduce:
- Go to the OOUI demo page https://doc.wikimedia.org/oojs-ui/master/demos/
- Scroll to MenuTagMultiselectWidget (initially selected, preset options)
- Focus the field with the two pre-selected items
- Tab away with ⇥ (tab) or ⇧+⇥ (shift + tab)
- The first selected item is deleted
Can also be experienced in production when using Advanced-Search while tabbing away from the namespace selection:
- Go to e.g. https://de.wikipedia.org/wiki/Special:Search
- Select multiple namespaces, e.g. simply click "All".
- Now use the ⇥ (tab) and ⇧+⇥ (shift + tab) keys to focus and leave the namespace input field multiple times.
- Every time the input field looses focus, the first selected namespace is deleted.