devbridge / jQuery-Autocomplete

Ajax Autocomplete for jQuery allows you to easily create autocomplete/autosuggest boxes for text input fields
https://www.devbridge.com/sourcery/components/jquery-autocomplete/
Other
3.56k stars 1.66k forks source link

how to clear current value when the el is blur #808

Open netmou opened 3 years ago

netmou commented 3 years ago

onBlur: function () { var that = this, options = that.options; /////////////////////////////////////////////////////////////////////// if (that.selection == null) { (options.onInvalidateSelection || $.noop).call(that.element); } //////////////////////////////////////////////////////////////////

        // If user clicked on a suggestion, hide() will
        // be canceled, otherwise close suggestions
        that.blurTimeoutId = setTimeout(function () {
            that.hide();
        }, 200);
    },

is there anyother way?