Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(creatable): cannot render AutoCompleteCreatable #58

Closed
eric-hc opened this issue Aug 26, 2021 · 3 comments
Closed

bug(creatable): cannot render AutoCompleteCreatable #58

eric-hc opened this issue Aug 26, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@eric-hc
Copy link
Contributor

eric-hc commented Aug 26, 2021

Following these docs:

First add the `creatable` prop to the AutoComplete component. Then add the `AutoCompleteCreatable` component to the bottom of the list. Refer to the references for more info on this component.

I was not able to render the <AutoCompleteCreatable> component within the AutoCompleteList

@jamesopti
Copy link

I just hit this too.

Looks like queryExistsInList is always true: https://github.com/anubra266/choc-autocomplete/blob/main/src/autocomplete-creatable.tsx#L32

Because it is always in filteredList: https://github.com/anubra266/choc-autocomplete/blob/main/src/use-autocomplete.ts#L107-L108

@anubra266 anubra266 added the bug Something isn't working label Aug 28, 2021
@RyanMcpherson141
Copy link

Facing same issue. Please let me know when it is fixed or if there is a temp fix for it.

@anubra266
Copy link
Owner

anubra266 commented Aug 29, 2021

Fixed in v4.5.8 @RyanMcpherson141 @jamesopti @eric-hc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants