#Is it possible to only show autocomplete options once a symbol (for example '$') is entered?
8 messages · Page 1 of 1 (latest)
Have the data be dynamic and only show options if the value has that character typed. https://mantine.dev/core/autocomplete/#dynamic-data
I was trying something like this after I asked the question but the suggestion only seems to work once, while I want the usecase of a suggestion showing up after you'd for example have typed suggestion here: $
I found a stackoverflow post that has a nice example of it: https://stackoverflow.com/a/56865319 but I don't think this'll be possible with Mantine, or at least the autocomplete component
Please share a codesandbox so we can look at it (you can fork the one in #🥦-rules )
It's fine, the example linked is using an old version of React and not even using Mantine and it'd be too much effort to post on codesandbox
I'll just work on converting it to modern React instead, there's still some Mantine hooks I can use so should be all good
Okay, but the dynamic data example really is worth looking at if you haven't already.