fix: Mantine Required icon being on new line

This commit is contained in:
blessedcoolant
2023-07-16 15:29:01 +12:00
parent d93d42af4a
commit 5b047baeb0
2 changed files with 3 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ export type IAISelectProps = Omit<SelectProps, 'label'> & {
};
const IAIMantineSelect = (props: IAISelectProps) => {
const { tooltip, inputRef, label, disabled, ...rest } = props;
const { tooltip, inputRef, label, disabled, required, ...rest } = props;
const styles = useMantineSelectStyles();
@@ -25,7 +25,7 @@ const IAIMantineSelect = (props: IAISelectProps) => {
<Select
label={
label ? (
<FormControl isDisabled={disabled}>
<FormControl isRequired={required} isDisabled={disabled}>
<FormLabel>{label}</FormLabel>
</FormControl>
) : undefined