vira - v26.5.6
    Preparing search index...

    Function updateSelectedItems

    • Creates a new array of selections based on the current selection and new selection id. This behaves differently when multi select is enabled, hence this function.

      Parameters

      • newItem: Readonly<MenuItem>

        The item that should be newly toggled.

      • currentSelection: readonly PropertyKey[] = []
      • isMultiSelect: boolean = false

      Returns PropertyKey[]