1
0
mirror of synced 2024-11-22 04:56:08 +03:00

Remove deprecated jQuery shorthand (#5564)

This commit is contained in:
kevin-j-morse 2019-07-20 13:05:48 -07:00 committed by Kevin Brown
parent 9c4f0c86a1
commit 8a5aeabcce
5 changed files with 8 additions and 8 deletions

View File

@ -58,7 +58,7 @@ define([
// Replace the search term if we have the search box
if (this.$search.length) {
this.$search.val(tokenData.term);
this.$search.focus();
this.$search.trigger('focus');
}
params.term = tokenData.term;

View File

@ -49,10 +49,10 @@ define([
container.on('open', function () {
self.$search.attr('tabindex', 0);
self.$search.focus();
self.$search.trigger('focus');
window.setTimeout(function () {
self.$search.focus();
self.$search.trigger('focus');
}, 0);
});
@ -60,12 +60,12 @@ define([
self.$search.attr('tabindex', -1);
self.$search.val('');
self.$search.blur();
self.$search.trigger('blur');
});
container.on('focus', function () {
if (!container.isOpen()) {
self.$search.focus();
self.$search.trigger('focus');
}
});

View File

@ -82,7 +82,7 @@ define([
self.$selection.removeAttr('aria-owns');
window.setTimeout(function () {
self.$selection.focus();
self.$selection.trigger('focus');
}, 0);
self._detachCloseHandler(container);

View File

@ -175,7 +175,7 @@ define([
this.resizeSearch();
if (searchHadFocus) {
this.$search.focus();
this.$search.trigger('focus');
}
};

View File

@ -59,7 +59,7 @@ define([
container.on('focus', function (evt) {
if (!container.isOpen()) {
self.$selection.focus();
self.$selection.trigger('focus');
}
});
};