Skip to content

Commit

Permalink
feat(deps): update MUI
Browse files Browse the repository at this point in the history
  • Loading branch information
ZRunner committed Oct 24, 2024
1 parent d86444a commit 9cb64dd
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 46 deletions.
85 changes: 43 additions & 42 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ export default function TextConfigComponent({ optionId, option }: TextConfigComp
variant="standard"
multiline={option.max_length > 150}
maxRows={5}
inputProps={{ minLength: option.min_length, maxLength: option.max_length }}
slotProps={{
htmlInput: { minLength: option.min_length, maxLength: option.max_length },
}}
disabled={isDisabled}
/>
</ComplexConfiguration>
Expand Down
6 changes: 3 additions & 3 deletions src/components/common/NumericInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ export default function NumericInput(props: NumericInputProps) {
<TextField
{...rest}
sx={{ maxWidth: "4.5em" }}
InputProps={{
inputComponent: NumericFormatCustom,
slotProps={{
input: { inputComponent: NumericFormatCustom },
htmlInput: { min, max, suffix, defaultValue, onValueChange, decimalScale: acceptDecimals ? 3 : 0 },
}}
inputProps={{ min, max, suffix, defaultValue, onValueChange, decimalScale: acceptDecimals ? 3 : 0 }}
variant="standard"
/>
);
Expand Down

0 comments on commit 9cb64dd

Please sign in to comment.