1/** 2 * @file 3 * JavaScript to autofocus first input. 4 */ 5 6(function ($, Drupal) { 7 /** 8 * Autofocus first input. 9 * 10 * @type {Drupal~behavior} 11 * 12 * @prop {Drupal~behaviorAttach} attach 13 * Attaches the behavior for the webform autofocusing. 14 */ 15 Drupal.behaviors.webformAutofocus = { 16 attach(context) { 17 $(context).find('.js-webform-autofocus :input:visible:enabled:first') 18 .trigger('focus'); 19 } 20 }; 21 22})(jQuery, Drupal);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.