Topic: autocomplete jquery not working

spigolo priority asked 2 months ago

Hello , please have a look at the snippet .

when searching in search stone (top menu , third icon , first field "search stone") , nothing happens . this is suppose to trigger jquery autocomplete script .

the error in console : jquery-3.7.1.min.js:2 Uncaught TypeError: Cannot read properties of null (reading 'offsetWidth') at qo._initDropdown (index.js:159:26) at qo._init (index.js:143:10) at new qo (index.js:95:10) at HTMLInputElement. (index.js:679:16) at Function.each (jquery-3.7.1.min.js:2:3129) at ce.fn.init.each (jquery-3.7.1.min.js:2:1594) at ce.fn.init.jQueryInterface [as autocomplete] (index.js:670:17) at HTMLDocument. (test.html:597:72) at e (jquery-3.7.1.min.js:2:27028) at t (jquery-3.7.1.min.js:2:27330)

here is the code :

spigolo priority commented 2 months ago

i am migrating from BS4 to BS5 and i need to keep using jquery

Grzegorz Bujański staff answered 2 months ago

Unfortunately, we are unable to ensure compatibility with this library. From what I understand, you are using the jQuery UI autocomplete component, not our autocomplete component. The MDB components themselves work fine in the snippet. Unfortunately, we do not know jQuery UI autocomplete component well enough to verify why it does not work

Kamila Pieńkowska staff answered 2 months ago

Please include only relevant code that replicate the error you get. And describe what is expected behavior.

spigolo priority commented 2 months ago

ok yes sorry , i have now kept only the search field in the drop down btn.

spigolo priority commented 2 months ago

the expected behaviour is that when searching a stone , the field triggers a jquery UI autocomplete code (ajax call to ./ajax/search_4.php) . at the moment it is not doing anything.

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 7.1.0
  • Device: pc
  • Browser: chrome
  • OS: win11
  • Provided sample code: No
  • Provided link: Yes