never allow deselecting dropdown items

This commit is contained in:
lone-cloud 2025-09-22 14:09:07 -07:00
parent cde3ca3e3a
commit 156befcc17
5 changed files with 5 additions and 0 deletions

View file

@ -36,6 +36,7 @@ export const SelectWithTooltip = ({
data={data} data={data}
disabled={disabled} disabled={disabled}
clearable={clearable} clearable={clearable}
allowDeselect={false}
/> />
</div> </div>
); );

View file

@ -109,6 +109,7 @@ export const ConfigFileManager = ({
leftSection={<File size={16} />} leftSection={<File size={16} />}
searchable searchable
clearable={false} clearable={false}
allowDeselect={false}
/> />
</div> </div>
<Button <Button

View file

@ -70,6 +70,7 @@ export const BackendSelector = () => {
disabled: b.disabled, disabled: b.disabled,
}))} }))}
disabled={isLoadingBackends || availableBackends.length === 0} disabled={isLoadingBackends || availableBackends.length === 0}
allowDeselect={false}
renderOption={({ option }) => { renderOption={({ option }) => {
const backendData = availableBackends.find( const backendData = availableBackends.find(
(b) => b.value === option.value (b) => b.value === option.value

View file

@ -68,6 +68,7 @@ export const GpuDeviceSelector = ({
} }
}} }}
data={deviceOptions} data={deviceOptions}
allowDeselect={false}
/> />
</div> </div>

View file

@ -267,6 +267,7 @@ export const GeneralTab = ({
disabled: !isFrontendAvailable(config.value), disabled: !isFrontendAvailable(config.value),
}))} }))}
leftSection={<Monitor style={{ width: rem(16), height: rem(16) }} />} leftSection={<Monitor style={{ width: rem(16), height: rem(16) }} />}
allowDeselect={false}
/> />
<Box mt="sm"> <Box mt="sm">