This resolves a bug where the menu items in the typeahead menu were all initially highlighted.
It's not intuitive, but Shoelace sets tabindex == -1 for all menu items, and then sets it to 0 only for the one current menu item that the user is hovering over or has selected using the arrow keys. So, the initial value for this property should be -1.
This resolves a bug where the menu items in the typeahead menu were all initially highlighted.
It's not intuitive, but Shoelace sets tabindex == -1 for all menu items, and then sets it to 0 only for the one current menu item that the user is hovering over or has selected using the arrow keys. So, the initial value for this property should be -1.