Skip to content

default _Blur always has now == true #68

@someniatko

Description

@someniatko

_Blur() acts as event handler for input.blur event.
It's signature looks like this (took from compiled, vanilla JS code):

_Blur: function (now) {
	if (now === void 0) { now = false; }
	if (now) {
		this._Close();
	}
	else {
		var params = this;
		setTimeout(function () {
			params._Blur(true);
		}, 150);
	}
},

However, now is always a FocusEvent instance. Therefore, now is always equal (in non-strict sense) to true, and timeout is never fired. This causes race condition between click on suggestion element and animation of closing list with suggestion elements. If you remove close animation, click event will be never fired.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions