mirror of
https://github.com/diced/zipline.git
synced 2025-12-12 07:40:45 -08:00
fix: don't allow deselecting in selects
This commit is contained in:
@@ -154,7 +154,6 @@ export default function Features({
|
||||
{ value: 'png', label: '.png' },
|
||||
{ value: 'webp', label: '.webp' },
|
||||
]}
|
||||
allowDeselect={false}
|
||||
{...form.getInputProps('featuresThumbnailsFormat')}
|
||||
/>
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ import {
|
||||
Modal,
|
||||
parseThemeColor,
|
||||
rgba,
|
||||
Select,
|
||||
VariantColorsResolver,
|
||||
} from '@mantine/core';
|
||||
|
||||
@@ -71,6 +72,11 @@ export function themeComponents(theme: ZiplineTheme): MantineThemeOverride {
|
||||
},
|
||||
},
|
||||
}),
|
||||
Select: Select.extend({
|
||||
defaultProps: {
|
||||
allowDeselect: false,
|
||||
},
|
||||
}),
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user