X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/85836abe716b2403f3b7fe75c551e4ace3995157..93926d5be6b62da8d8bedea1c9c3a63fd4e71b31:/src/views-components/virtual-machines-dialog/group-array-input.tsx

diff --git a/src/views-components/virtual-machines-dialog/group-array-input.tsx b/src/views-components/virtual-machines-dialog/group-array-input.tsx
index 12a73019..3ea5e77c 100644
--- a/src/views-components/virtual-machines-dialog/group-array-input.tsx
+++ b/src/views-components/virtual-machines-dialog/group-array-input.tsx
@@ -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);
-        }
-      }
   }
 );
