mirror of
https://github.com/lone-cloud/gerbil
synced 2026-06-03 19:54:44 -07:00
never allow deselecting dropdown items
This commit is contained in:
parent
cde3ca3e3a
commit
156befcc17
5 changed files with 5 additions and 0 deletions
|
|
@ -36,6 +36,7 @@ export const SelectWithTooltip = ({
|
||||||
data={data}
|
data={data}
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
clearable={clearable}
|
clearable={clearable}
|
||||||
|
allowDeselect={false}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,7 @@ export const GpuDeviceSelector = ({
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
data={deviceOptions}
|
data={deviceOptions}
|
||||||
|
allowDeselect={false}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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">
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue