mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Some changes to the core code that will be helpful for other nodes.
This commit is contained in:
committed by
Akshay Joshi
parent
764677431f
commit
b20558cb99
@@ -563,7 +563,9 @@ export function InputSelect({
|
||||
}
|
||||
}, [onChange]);
|
||||
|
||||
const realValue = getRealValue(finalOptions, value, controlProps.creatable);
|
||||
/* Apply filter if any */
|
||||
const filteredOptions = (controlProps.filter && controlProps.filter(finalOptions)) || finalOptions;
|
||||
const realValue = getRealValue(filteredOptions, value, controlProps.creatable);
|
||||
const otherProps = {
|
||||
isSearchable: !readonly,
|
||||
isClearable: !readonly && (!_.isUndefined(controlProps.allowClear) ? controlProps.allowClear : true),
|
||||
@@ -581,7 +583,7 @@ export function InputSelect({
|
||||
openMenuOnClick: !readonly,
|
||||
onChange: onChangeOption,
|
||||
isLoading: isLoading,
|
||||
options: finalOptions,
|
||||
options: filteredOptions,
|
||||
value: realValue,
|
||||
menuPortalTarget: document.body,
|
||||
styles: styles,
|
||||
|
||||
Reference in New Issue
Block a user