Issue: SelectService mutates frozen selectedOption array and fails with grouped options
Issue: SelectService mutates frozen selectedOption array and fails with grouped options: a task in LegoFlow-SWE (Harbor dataset). When using the SelectService in multi-select mode, passing a frozen (read-only) array as the selectedOption causes a runtime error when selecting an option. The error…
The task
When using the `SelectService` in multi-select mode, passing a frozen (read-only) array as the `selectedOption` causes a runtime error when selecting an option. The error message is `"selectedOption is readonly"`. This happens because the `select` method attempts to mutate the provided array directly.
Part of Lego-X/LegoFlow-SWE.