fix(ui): unable to add more enum values for enum cp (#18440)

* fix(ui): unable to add more enum values for enum cp

* replicate height constraint and dropdown visibility to add cp

(cherry picked from commit e197c3f3d01e33a64538bc891ed8ef33de7a8af4)
This commit is contained in:
Chirag Madlani 2024-10-29 12:18:51 +05:30 committed by karanh37
parent fc924f00da
commit f2c4aaced9
3 changed files with 11 additions and 0 deletions

View File

@ -326,6 +326,8 @@ const AddCustomProperty = () => {
'data-testid': 'enumConfig',
mode: 'tags',
placeholder: t('label.enum-value-plural'),
open: false,
className: 'trim-select',
},
rules: [
{

View File

@ -100,6 +100,8 @@ const EditCustomPropertyModal: FC<EditCustomPropertyModalProps> = ({
const updatedValues = uniq([...value, ...(enumConfig?.values ?? [])]);
form.setFieldsValue({ customPropertyConfig: updatedValues });
},
open: false,
className: 'trim-select',
},
rules: [
{

View File

@ -50,3 +50,10 @@
}
}
}
.ant-select.trim-select {
.ant-select-selection-overflow {
max-height: 200px;
overflow-y: auto;
}
}