Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
webform
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
webform
Merge requests
!452
Issue
#3336931
by paulocs: [Deprecation] Replace deprecated jQuery :tabbable selector
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Issue
#3336931
by paulocs: [Deprecation] Replace deprecated jQuery :tabbable selector
issue/webform-3336931:3336931-replace-deprecated-jquery
into
6.3.x
Overview
0
Commits
3
Pipelines
6
Changes
4
Merged
Issue #3336931 by paulocs: [Deprecation] Replace deprecated jQuery :tabbable selector
Sandeep Sanwale
requested to merge
issue/webform-3336931:3336931-replace-deprecated-jquery
into
6.3.x
Apr 9, 2024
Overview
0
Commits
3
Pipelines
6
Changes
4
Closes
#3336931
0
0
Merge request reports
Compare
6.3.x
version 6
785e4acc
8 months ago
version 5
7308c56f
8 months ago
version 4
7f318ccb
8 months ago
version 3
7f318ccb
8 months ago
version 2
bd6a84b8
Apr 16, 2024
version 1
b7e5e460
Apr 9, 2024
6.3.x (base)
and
latest version
latest version
1076336a
3 commits,
8 months ago
version 6
785e4acc
5 commits,
8 months ago
version 5
7308c56f
4 commits,
8 months ago
version 4
7f318ccb
3 commits,
8 months ago
version 3
7f318ccb
42 commits,
8 months ago
version 2
bd6a84b8
2 commits,
Apr 16, 2024
version 1
b7e5e460
1 commit,
Apr 9, 2024
4 files
+
38
−
46
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
js/webform.ajax.js
+
7
−
3
View file @ 1076336a
Edit in single-file editor
Open in Web IDE
Show full file
@@ -3,7 +3,7 @@
* JavaScript behaviors for Ajax.
*/
(
function
(
$
,
Drupal
,
drupalSettings
,
once
)
{
(
function
(
$
,
Drupal
,
drupalSettings
,
once
,
tabbable
)
{
'
use strict
'
;
@@ -167,7 +167,11 @@
setTimeout
(
function
()
{
$element
.
removeClass
(
'
color-success
'
);},
3000
);
// Focus first tabbable item for the updated elements and handlers.
$element
.
find
(
'
:tabbable:not(.tabledrag-handle)
'
).
eq
(
0
).
trigger
(
'
focus
'
);
const
tabbableElements
=
tabbable
.
tabbable
(
$element
.
get
(
0
));
const
filteredElements
=
tabbableElements
.
filter
(
element
=>
!
element
.
classList
.
contains
(
'
tabledrag-handle
'
));
if
(
filteredElements
.
length
)
{
filteredElements
[
0
].
focus
();
}
// Scroll element into view.
Drupal
.
webformScrolledIntoView
(
$element
);
@@ -333,4 +337,4 @@
}
};
})(
jQuery
,
Drupal
,
drupalSettings
,
once
);
})(
jQuery
,
Drupal
,
drupalSettings
,
once
,
tabbable
);
Loading