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

Enter tags without any delimiters in mix mode / Empty Pattern #1310

Closed
finddeepali opened this issue Mar 21, 2024 · 3 comments
Closed

Enter tags without any delimiters in mix mode / Empty Pattern #1310

finddeepali opened this issue Mar 21, 2024 · 3 comments
Labels

Comments

@finddeepali
Copy link

finddeepali commented Mar 21, 2024

Hi @yairEO ,
Thank you for this library. I know this issue was reported earlier #163
But i did not understand conclusion on this.

I am using mixed mode to create a search box to support both of below use cases

  1. Type a text like 'social" and show all autosuggest entries like google.
image
  1. in the same text box if i type '#mysearchtext' all entries matching mysearchtext like github
image

For this reason, i cant fix my pattern to '#'. empty pattern will suit my usecase better.

I can not have two separate input boxes for above use cases. They need to be the same input element.
Any suggestions on this is highly appreaciated.

Thank you.

@yairEO
Copy link
Owner

yairEO commented Mar 22, 2024

Doesn't seem you need mix-mode at all. Seems like a search box with a single value.

There is a section in the README that shows how to exactly do what you want:
https://github.com/yairEO/tagify#ajax-whitelist

@finddeepali
Copy link
Author

finddeepali commented Mar 26, 2024

hi @yairEO ,
Thanks for your reply.

I have explained partial use case above. the actual use case to be able to type free text along with showing pills from selected options (this is selected by typing # , this is separate api call only for # use case).
image

however in absense of # character we still need to be able to match and autosuggest based on whatever text is typed (these are different options than # ones), which is why i am looking for empty pattern

@yairEO
Copy link
Owner

yairEO commented Mar 26, 2024

The link in my last comment has a code example showcasing how it can be done

@yairEO yairEO closed this as completed Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants