This commit is contained in:
Kiran Ashok 2022-03-03 20:36:49 +05:30 committed by GitHub
parent 42058bd088
commit 50a57d13fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,7 +51,7 @@ export const Multiselect = function Multiselect({
setCurrentValue(properties.value);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [value]);
}, []);
useEffect(() => {
selectRef.current.querySelector('.select-search__input').style.borderRadius = `${Number.parseFloat(
@ -61,7 +61,7 @@ export const Multiselect = function Multiselect({
}, [borderRadius, selectRef.current]);
const handleChange = (value) => {
setCurrentValue(value);
// setCurrentValue(value);
setExposedVariable('values', value).then(() => fireEvent('onSelect'));
};