1
0
mirror of synced 2024-11-26 06:46:04 +03:00

Merge pull request #768 from bcoughlan/master

Fix issue introduced by 20950e0.
This commit is contained in:
Igor Vaynberg 2013-01-29 11:04:46 -08:00
commit d0410144ba

View File

@ -1126,7 +1126,7 @@ the specific language governing permissions and limitations under the Apache Lic
highlightUnderEvent: function (event) {
var el = $(event.target).closest(".select2-result-selectable");
if (el.length > 0 && !el.is(".select2-highlighted")) {
var choices = this.results.find('.select2-result');
var choices = this.results.find('.select2-result:visible');
this.highlight(choices.index(el));
} else if (el.length == 0) {
// if we are over an unselectable item remove al highlights