Hi,
This looks like a bug, because the selection and focus visual appearance of an item is the same. The item looks like selected, but actually it is only focused. It is not part of the selectedIndexes collection anymore. Only items which appeal in the INPUT field are selected. The focused item is the item from which the keyboard navigation starts.
Best Regards,
Peter Stoev
Smart HTML Elements Team https://www.htmlelements.com/