@evoke-platform/ui-components 1.6.0-dev.6 → 1.6.0-dev.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,6 +28,9 @@ const Select = (props) => {
|
|
28
28
|
otherInputRef.current.focus();
|
29
29
|
}
|
30
30
|
}, [isOther, value]);
|
31
|
+
useEffect(() => {
|
32
|
+
setValue(defaultValue);
|
33
|
+
}, [defaultValue]);
|
31
34
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
32
35
|
const handleChange = (event, selected) => {
|
33
36
|
if (Array.isArray(selected)) {
|
@@ -166,6 +169,6 @@ const Select = (props) => {
|
|
166
169
|
'& button.MuiButtonBase-root': {
|
167
170
|
visibility: 'visible',
|
168
171
|
},
|
169
|
-
}, ...(isCombobox ? { selectOnFocus: true, handleHomeEndKeys: true, freeSolo: true } : {}), ...(additionalProps ?? {}) }));
|
172
|
+
}, forcePopupIcon: true, ...(isCombobox ? { selectOnFocus: true, handleHomeEndKeys: true, freeSolo: true } : {}), ...(additionalProps ?? {}) }));
|
170
173
|
};
|
171
174
|
export default Select;
|