Skip to content
Snippets Groups Projects

Resolve #3478046 "Fix eslint pipeline"

Open Ankit Pathak requested to merge issue/webform-3478046:3478046-fix-eslint-pipeline into 6.3.x
Files
85
@@ -4,9 +4,6 @@
*/
(function ($, Drupal, once) {
'use strict';
// Make sure that dropButton behavior exists.
if (!Drupal.behaviors.dropButton) {
return;
@@ -15,12 +12,17 @@
/**
* Wrap Drupal's dropbutton behavior so that the dropbutton widget is only visible after it is initialized.
*/
var dropButton = Drupal.behaviors.dropButton;
const dropButton = Drupal.behaviors.dropButton;
Drupal.behaviors.dropButton = {
attach: function (context, settings) {
attach(context, settings) {
dropButton.attach(context, settings);
$(once('webform-dropbutton', '.webform-dropbutton .dropbutton-wrapper', context)).css('visibility', 'visible');
}
$(
once(
'webform-dropbutton',
'.webform-dropbutton .dropbutton-wrapper',
context,
),
).css('visibility', 'visible');
},
};
})(jQuery, Drupal, once);
Loading