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.
The item that should be newly toggled.
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.