-
Notifications
You must be signed in to change notification settings - Fork 610
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
React to mutations in original <datalist> #16923
Comments
No. |
Perhaps we should add one, it would be pretty short I think. |
I could really use a destroy method |
Do you want to describe your use case a bit? It would help. |
Sorry, so I've got a select input which "filters" the autocomplete results of the awesomplete input. I'm disabling items in the datalist that don't match the selected filter. However making changes to the initial datalist after awesomplete has been initialised doesn't hide those options. There's probably a better way but, I was going to destroy the original awesomplete instance and then reinitialise with the disabled options? |
Yes, there is :) You could set the |
Ahh!! Yea didn't think of that, I need to sleep haha. Yeah that would be awesome. Thanks for your help :) |
A mutation observer would be a nicer solution, but unfortunately, it is On Fri, Jul 22, 2016, 19:37 Peter Pham [email protected] wrote:
|
Whoever is supporting IE10 and below is wasting their time. Check the actual usage stats, they are about 0.5% for each version of IE. |
Same here right now :( I can take a look at this as soon I have time, but we have much older issues to deal with.
LOL, Lea :) #16821 (comment) Does it mean we can drop IE10 support and related hacks in code? |
Do we have many of those? I think we can wait a bit for that, but let's not expend more energy supporting obsolete crap, especially for features that not everyone uses like this one. Checking if |
As far as I remember these hacks were much simpler without IE10 support https://github.com/LeaVerou/awesomplete/blob/gh-pages/awesomplete.js#L298-L311 |
Oh, because of |
I just got into a situation where I need a way to un-instantiate Awesomplete. I have a country select list and I use Awesomplete to show post codes suggestions only when the country is Australia. So I need to un-instantiate Awesomplete when the country is not Australia. |
Does it update datalist if user type a new word ? |
Hi Lea,
Is there a destroy method for Awesomplete?
The text was updated successfully, but these errors were encountered: