Use stable cache key for useMemo

This commit is contained in:
Paul Chavard 2021-02-16 16:37:01 +01:00
parent 8b55f67964
commit 881820888a

View file

@ -47,7 +47,7 @@ function ComboMultipleDropdownList({
)
: options
).filter((o) => o[0] && !selections.includes(o[1])),
[term, selections]
[term, selections.join(',')]
);
const hiddenField = useMemo(
() => document.querySelector(`input[data-uuid="${hiddenFieldId}"]`),