Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: autocomplete jquery not working

spigolo priority asked 9 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 : https://mdbootstrap.com/snippets/standard/spigolo/5995228


spigolo priority commented 9 months ago

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


Grzegorz Bujański staff answered 9 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 9 months ago


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


spigolo priority commented 9 months ago

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


spigolo priority commented 9 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.

FREE CONSULTATION

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

Status

Answered

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