Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
netmou opened this issue Dec 4, 2020 · 0 comments
Open

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

netmou opened this issue Dec 4, 2020 · 0 comments

Comments

@netmou
Copy link

netmou commented Dec 4, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant