19504: Fix breadcrumbs height to improve text vertical centering
[arvados-workbench2.git] / src / components / autocomplete / autocomplete.tsx
index 67bc9fa184ffaf10673caa8156b8827e3b0fc356..0044807b8a9ddb3e2abeb43a546dad5a2ada4d83 100644 (file)
@@ -2,7 +2,7 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import * as React from 'react';
+import React from 'react';
 import {
     Input as MuiInput,
     Chip as MuiChip,
@@ -175,7 +175,7 @@ export class Autocomplete<Value, Suggestion> extends React.Component<Autocomplet
                 <Chip
                     label={this.renderChipValue(item)}
                     key={index}
-                    onDelete={() => onDelete ? onDelete(item, index) : undefined} />
+                    onDelete={onDelete && !this.props.disabled ? (() =>  onDelete(item, index)) : undefined} />
         );
     }