django-autocomplete-light icon indicating copy to clipboard operation
django-autocomplete-light copied to clipboard

Bootstrap modal with remote url and DAL

Open gabn88 opened this issue 3 years ago • 2 comments

Getting DAL to work with the bootstrap modal that loads the "registerfunction" script with the remote url is problematic with the new release. I though I had it working, but it seems that whether it works depends on, amongst other things, the internet speed, which is undesirable.

The problem is that the registerfunction could be called before the modal is ready, but after yl is defined. That way the select2 is not even initialized, because the function already is in the yl.functions (which is global in scope), but not initialized on the current (new) modal.

gabn88 avatar Apr 22 '21 18:04 gabn88

Can you reproduce in a test app in the test project so that we can take a look?

jpic avatar May 11 '21 20:05 jpic

+1

OmarAboulMakarem avatar Jan 17 '22 20:01 OmarAboulMakarem