Commit a49d031b authored by John Davis's avatar John Davis
Browse files

Do not reorder options in FormSelect component when multiselect disabled

parent 07897936
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ const filteredOptions = useFilterObjectArray(() => props.options, filter, ["labe
const optionReorderThreshold = 8;

const reorderedOptions = computed(() => {
    if (filteredOptions.value.length <= optionReorderThreshold) {
    if (!props.multiple || filteredOptions.value.length <= optionReorderThreshold) {
        return filteredOptions.value;
    } else {
        const selectedOptions: SelectOption[] = [];