mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add ability to trim the value from <Input> (#3333)
- If set (default = false) then the input will be trimmed of whitespace before validation and before submit - Use trim on all input's that use the systemName validator Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
14b70a6c53
commit
a4f252864b
7 files changed
+21
-12
No files matched your search
@@ -88,8 +88,10 @@ export class CreateServiceAccountDialog extends React.Component<Props> {
|
||||
<WizardStep nextLabel="Create" next={this.createAccount}>
|
||||
<SubTitle title="Account Name" />
|
||||
<Input
|
||||
autoFocus required
|
||||
autoFocus
|
||||
required
|
||||
placeholder="Enter a name"
|
||||
trim
|
||||
validators={systemName}
|
||||
value={name} onChange={v => this.name = v.toLowerCase()}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user