Honatas / bootstrap-4-autocomplete

A simple autocomplete/typeahead for Bootstrap 4 and jQuery
MIT License
56 stars 31 forks source link

Handling values not found in source array #12

Open dmagician opened 4 years ago

dmagician commented 4 years ago

For my usecase input, that's being typed in and is not found in source array, should be offered in suggestions too (in most cases it will be just single option after complete name of city is typed in), then after picking it, it should be handled by separate callback. That would be ideal solution.

In my case, I have limited ammount of available cities. If the typed in city is not in the list, it falls into separate shipping zone. I need to handle that, so I will have to make a workaround for this. It would be great if this situation was handled directly by your component.