Cloning Elements with Autocomplete

Cloning Elements with Autocomplete

How do you clone elements that have an autocomplete and have the autocomplete apply separately to the new element?

Right now I clone the element withDataAndEvents but the autocomplete triggers the original input instead of the cloned input. Is there some way to avoid this behavior?