mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-26 08:09:51 -04:00
Fix reference to non-existent jQuery collection
Raised on PR as comment:
e4b4be9d45 (r270781103)
This commit is contained in:
@@ -2,14 +2,14 @@
|
||||
"use strict";
|
||||
|
||||
Modules.Autofocus = function() {
|
||||
this.start = function($component) {
|
||||
var forceFocus = $component.data('forceFocus');
|
||||
this.start = function(component) {
|
||||
var forceFocus = $(component).data('forceFocus');
|
||||
|
||||
// if the page loads with a scroll position, we can't assume the item to focus onload
|
||||
// is still where users intend to start
|
||||
if (($(window).scrollTop() > 0) && !forceFocus) { return; }
|
||||
|
||||
$('input, textarea, select', $component).eq(0).trigger('focus');
|
||||
$('input, textarea, select', component).eq(0).trigger('focus');
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user