This commit is contained in:
@ -2,7 +2,7 @@ import { TextField } from "@mui/material";
|
||||
import { LenConstraint } from "../../api/ServerApi";
|
||||
|
||||
/**
|
||||
* Couple / Member property edition
|
||||
* Text input property edition
|
||||
*/
|
||||
export function TextInput(p: {
|
||||
label?: string;
|
||||
@ -42,12 +42,14 @@ export function TextInput(p: {
|
||||
e.target.value.length === 0 ? undefined : e.target.value
|
||||
)
|
||||
}
|
||||
inputProps={{
|
||||
maxLength: p.size?.max,
|
||||
}}
|
||||
InputProps={{
|
||||
readOnly: !p.editable,
|
||||
type: p.type,
|
||||
slotProps={{
|
||||
htmlInput: {
|
||||
maxLength: p.size?.max,
|
||||
},
|
||||
input: {
|
||||
readOnly: !p.editable,
|
||||
type: p.type,
|
||||
},
|
||||
}}
|
||||
variant={"standard"}
|
||||
style={p.style ?? { width: "100%", marginBottom: "15px" }}
|
||||
|
Reference in New Issue
Block a user