Skip to content

Commit

Permalink
fix(form-builder): remove distinctUntilChanged function from handleQu…
Browse files Browse the repository at this point in the history
…eryChange in referenceInput (#3901)
  • Loading branch information
ninaandal authored and skogsmaskin committed Dec 8, 2022
1 parent 11988da commit f544e11
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -261,7 +261,9 @@ export const ReferenceInput = forwardRef(function ReferenceInput(
const handleQueryChange = useObservableCallback((inputValue$: Observable<string | null>) => {
return inputValue$.pipe(
filter(nonNullable),
distinctUntilChanged(),
//This prevents a filter in a reference from updating when the dependent reference are updated.
//Worst case by removing - the function will be called when you enter the same string.
//distinctUntilChanged(),
switchMap((searchString) =>
concat(
of({isLoading: true}),
Expand Down

0 comments on commit f544e11

Please sign in to comment.