kartik-v / yii2-widget-typeahead

Enhanced Yii2 wrapper for the Twitter Typeahead plugin (sub repo split from yii2-widgets).
Other
45 stars 17 forks source link

Multiple typeahead widgets on the same page error #48

Open ghimes opened 1 week ago

ghimes commented 1 week ago

Prerequisites

Steps to reproduce the issue

  1. First time when the page load no console error in the browser

  2. Reloading the page I will get this errors:

    typeahead.bundle.js:13 Uncaught ReferenceError: module is not defined
    at typeahead.bundle.js:13:9
    at typeahead.bundle.js:17:3
    (anonymous) @ typeahead.bundle.js:13
    (anonymous) @ typeahead.bundle.js:17Understand this errorAI
    jquery.js:3869 Uncaught ReferenceError: Bloodhound is not defined
    at HTMLDocument.<anonymous> (update?id=1966412771:1882:22)
    at mightThrow (jquery.js:3583:29)
    at process (jquery.js:3651:12)
  3. All the reloads of the page will have these errors unless I clear cache and hard reload the page

Expected behavior and actual behavior

When I follow those steps, I see...

I was expecting...

Environment

Browsers

Operating System

Libraries

Isolating the problem