19049: Exclude existing users with logins in create login user picker
[arvados-workbench2.git] / src / views-components / virtual-machines-dialog / group-array-input.tsx
index 12a73019d5c7b717e0408da962226c08a3c2df94..3ea5e77c883e2316f2d2fc7dd16a40dfd7953558 100644 (file)
@@ -52,10 +52,10 @@ const StyledInputComponent = withStyles(styles)(
               values={input.value}
               onChange={this.handleChange}
               handleFocus={input.onFocus}
-              handleBlur={this.handleBlur}
               createNewValue={identity}
               inputComponent={Input}
               chipsClassName={classes.chips}
+              pattern={/[_a-z][-0-9_a-z]*/ig}
               inputProps={{
                   error: meta.error,
               }} />;
@@ -69,11 +69,5 @@ const StyledInputComponent = withStyles(styles)(
           input.onChange(values);
       }
 
-      handleBlur = (e: React.FocusEvent<HTMLInputElement>) => {
-        const { input } = this.props;
-        if (!input.value?.length) {
-          input.onBlur(e);
-        }
-      }
   }
 );