My implementation of django-autocomplete-light is causing some issues with rendering autocomplete options.
There is a section on the website where it functions perfectly, but in another section, it only works partially.
The autocomplete options display correctly, but upon clicking one, an error is thrown:
Uncaught TypeError: Object [object Object] has no method 'yourlabsWidget'
What could be causing this discrepancy?
In the fully functional page, I am rendering the complete form. However, in this particular widget, I am only using specific fields referenced as {{ form.field }}.
UPDATE
Both pages are successfully loading the javascript files from django-autocomplete-light.
Any ideas or suggestions?
UPDATE 2
<head>
<script type="text/javascript" src="/static/js/jquery/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="/static/js/jquery/jquery-ui-1.9.2.custom.min.js"></script>
<script type="text/javascript" src="/static/js/bootstrap/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="/static/css/jquery/jquery-ui-1.9.2.custom.min.css">
<link rel="stylesheet" type="text/css" href="/static/css/bootstrap/bootstrap.css">
<link rel="stylesheet" type="text/css" href="/static/css/main.css">
<script type="text/javascript" src="/static/autocomplete_light/autocomplete.js"></script>
<script type="text/javascript" src="/static/autocomplete_light/widget.js"></script>
<script type="text/javascript" src="/static/autocomplete_light/addanother.js"></script>
<script type="text/javascript" src="/static/autocomplete_light/text_widget.js"></script>
<script type="text/javascript" src="/static/autocomplete_light/remote.js"></script>
<link rel="stylesheet" type="text/css" href="/static/autocomplete_light/style.css">
<script data-main="/static/js/rotas.js/main.js" src="/static/js/require/require.js"></script>
<script type="text/javascript" charset="utf-8" async="" data-requirecontext="_" data-requiremodule="main" src="/static/js/rotas.js/main.js"></script>