<script> $(document).ready(function($) { // Workaround for bug in mouse item selection $.fn.typeahead.Constructor.prototype.blur = function() { var that = this; setTimeout(function () { that.hide() }, 250); }; $(\'#product_search\').typeahead({ source: function(query, process) { return ["Deluxe Bicycle", "Super Deluxe Trampoline", "Super Duper Scooter"]; } }); }) </script>
解决bootstrap typeahead 自动完成组件鼠标不点击提示框不消失的bug
内容版权声明:除非注明,否则皆为本站原创文章。