mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure the database and schema restriction controls are not shown as a drop-down. Fixes #7255
This commit is contained in:
committed by
Akshay Joshi
parent
efa971edb4
commit
c2f1a7bdc5
@@ -895,6 +895,8 @@ export const InputSelect = forwardRef(({
|
||||
components: {
|
||||
Option: CustomSelectOption,
|
||||
SingleValue: CustomSelectSingleValue,
|
||||
IndicatorSeparator: (props) => controlProps.noDropdown ? null: <RSComponents.IndicatorSeparator {...props} />,
|
||||
DropdownIndicator: (props) => controlProps.noDropdown ? null: <RSComponents.DropdownIndicator {...props} />
|
||||
},
|
||||
isMulti: Boolean(controlProps.multiple),
|
||||
openMenuOnClick: !readonly,
|
||||
@@ -915,7 +917,13 @@ export const InputSelect = forwardRef(({
|
||||
);
|
||||
} else {
|
||||
return (
|
||||
<CreatableSelect ref={ref} {...commonProps} />
|
||||
<CreatableSelect
|
||||
ref={ref}
|
||||
{...commonProps}
|
||||
noOptionsMessage={() =>
|
||||
!controlProps.noDropdown ? 'No options' : null
|
||||
}
|
||||
/>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user