Multiple selections in menu?

So, I’m trying to do multiple selections in a sp-menu, and it doesn’t seem to work.

      <sp-menu selects="multiple">
        <sp-menu-item selected>Sample Menu</sp-menu-item>
        <sp-menu-item>Select Option 1</sp-menu-item>
        <sp-menu-item>Select Option 2</sp-menu-item>
        <sp-menu-item>Select Option 3</sp-menu-item>
        <sp-menu-item>Select Option 4</sp-menu-item>
        <sp-menu-item disabled>Disabled Option</sp-menu-item>
      </sp-menu>

Any workarounds before I have to roll my own component?

It is a known issue in the Spectrum Web Component. So it must be the same for the Spectrum Widget.

It seems that the only thing needed is a component equivalent to sp-menu, since sp-menu-item has a selected property, although I haven’t tried it. It might be faster to create it than to look for a workaround.

Added (2024-11-17):

Tried to create my own sp-menu equivalent using sp-menu-item, but gave up because it was difficult to reproduce the appearance of multiple selections.