You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when used on an element not yet added to the DOM the requests are still fired but no UI is presented with the suggestions. It would be nice if this use case was supported.
This would be nice because when generating UI it is a good performance practice to generate it out-of-dom and then add everything in one action. It can also be awkward to delay initialization until the node is added.
The text was updated successfully, but these errors were encountered:
Well right now the typeahead.js UI needs to make DOM modifications (e.g. add the hint input and the dropdown menu). Albeit I haven't looked into it at all, I'm not sure how I could support your use case with that being the case.
I have a WIP branch (#902) that may make solving this problem more feasible.
To be honest I haven't looked at the source either. However I believe it should be possible as you can still build a DOM tree as long as you don't try to get any computed properties as the elements are not rendered at this time. I don't know how feasible this is for typeahead though.
I will check out the WIP branch and see if that affects anything.
Currently when used on an element not yet added to the DOM the requests are still fired but no UI is presented with the suggestions. It would be nice if this use case was supported.
Example: http://jsfiddle.net/kevincox/fLfEJ/
This would be nice because when generating UI it is a good performance practice to generate it out-of-dom and then add everything in one action. It can also be awkward to delay initialization until the node is added.
The text was updated successfully, but these errors were encountered: