Sha256: f9c1ad9988f6cdebed0697db67ed2ed48a6603e19622118ef1bbea7ae32216fd
Contents?: true
Size: 761 Bytes
Versions: 13
Compression:
Stored size: 761 Bytes
Contents
define([ '../utils' ], function (Utils) { function TagsSearchHighlight () { } TagsSearchHighlight.prototype.highlightFirstItem = function (decorated) { var $options = this.$results .find( '.select2-results__option--selectable' + ':not(.select2-results__option--selected)' ); if ($options.length > 0) { var $firstOption = $options.first(); var data = Utils.GetData($firstOption[0], 'data'); var firstElement = data.element; if (firstElement && firstElement.getAttribute) { if (firstElement.getAttribute('data-select2-tag') === 'true') { $firstOption.trigger('mouseenter'); return; } } } decorated.call(this); }; return TagsSearchHighlight; });
Version data entries
13 entries across 13 versions & 1 rubygems