Consider the following:
new OO.ui.MenuTagMultiselectWidget( { allowArbitrary: true, options: [ { data: 'foo', label: 'Label for foo', }, { data: 'bar', label: 'Label for bar' } ] } )
- Click in the textinput
- The menu is shown
- type 'a'
- The menu is hidden because no items match 'a'
- type <enter>
- Expected: A tag 'a' is added (because allowArbitrary)
- Actual: A tag 'Label for foo' is added
Note: using menu: { highlightOnFilter: true } in the config fixes it but causes T209716
Note 2: Happens as described above only the first time after creating the control.