#Turn off Mantine AutoComplete's client side filtering

3 messages · Page 1 of 1 (latest)

ashen dock
#

Is there any way I can utilize the search functionality of the backend instead of using client-side filtering of Mantine's autocomplete?

I have a state where I am saving data and when the value of autocomplete changes I am fetching data from API and updating the state variable based on that but after doing this, I realized that Mantine is using its client-side filtering here. Is there any way to turn it off?

Currently, I am using this hacky way to fix this. But the function passed to the filter prop is running on every keystroke. So, I want to turn it off.

<Drawer opened={props.opened} onClose={props.onClose} title="Add Member">
      <Autocomplete
        data={data}
        filter={() => true}
      />
stark spoke
ashen dock