fix: don't allow deselecting in selects

This commit is contained in:
diced
2025-08-28 11:58:08 -07:00
parent ac37f13452
commit fd8d4fbe5e
2 changed files with 6 additions and 1 deletions

View File

@@ -154,7 +154,6 @@ export default function Features({
{ value: 'png', label: '.png' },
{ value: 'webp', label: '.webp' },
]}
allowDeselect={false}
{...form.getInputProps('featuresThumbnailsFormat')}
/>

View File

@@ -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,
},
}),
},
};
}