jQuery UI Autocomplete - menu disappears on hover jQuery UI Autocomplete - menu disappears on hover jquery jquery

jQuery UI Autocomplete - menu disappears on hover


The error is caused because of a conflict that occurs when two jQuery UI files are loaded into the client's browser at the same time. If you peak into your <head> section you will probably see you have two different jQuery UI files referenced there. Just remove one and it will work.


I had the same problem, but I only ever had one jquery-ui script tag in the DOM at a time. I was loading content with Ajax that included the script tag. If I did that twice on one page, it would break the autocomplete dropdown, even though the content of the second request was replacing the content of the first. One workaround is to add this line before rendering content containing the jquery-ui script:

$.ui = null;


This error is caused when two jQuery UI files are loaded into your browser at the same time.This may cause jquery conflict. Remove the unused jquery UI file to solve the error.

In my case jquery-ui.min.js file was unintentionally included from assets folder.To remove it i added one code in components in config/main.php

     'clientScript' => array(        'scriptMap' => array(            'jquery-ui.min.js' => false,        )),