Don't allow people to set their instance name to an empty string (or only whitespace) (#240)

* make server name required

* prevent space-only instance name

* add useTrimLead to TextFieldProps
This commit is contained in:
Meisam
2021-07-03 22:52:37 +02:00
committed by GitHub
parent bcd46cee61
commit 7a1f9dcd9a
3 changed files with 5 additions and 1 deletions

View File

@@ -29,6 +29,7 @@ export interface TextFieldProps {
tip?: string;
type?: string;
useTrim?: boolean;
useTrimLead?: boolean;
value?: string | number;
onBlur?: FieldUpdaterFunc;
onChange?: FieldUpdaterFunc;