jQuery UI Autocomplete - menu disappears on hover

后端 未结 6 2159
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-02 16:18

I\'m trying to use jQuery UI Autocomplete to bring up a list of names of people in a MySQL Database. The basic function is working - when you type in two or more letters a l

6条回答
  •  醉酒成梦
    2020-12-02 17:07

    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,
            )),
    

提交回复
热议问题