Having trouble getting React example working #750
-
I've followed along from the docs, and am having trouble getting Autocomplete to work. The combobox renders, but as soon as I type something into it, I get the following error: I've put together a CodeSandbox here: Can someone please take a look a tell me what I'm doing wrong? Thanks 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It's a small thing you missed, but const search = autocomplete({
container: containerRef.current,
placeholder: "Search for products",
renderer: {
createElement: React.createElement,
Fragment: React.Fragment
},
// this here:
render({ children }, root) {
render(children, root);
}, I opened an issue to add an error in this case: #751 |
Beta Was this translation helpful? Give feedback.
It's a small thing you missed, but
render
is also required to be passed: https://codesandbox.io/s/nostalgic-lake-brpbe?file=/components/autocomplete.tsxI opened an issue to add an error in this case: #751