Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
conditional_fields
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
conditional_fields
Merge requests
!70
#3351930
: Drupal behaviors not running when element is shown
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
#3351930
: Drupal behaviors not running when element is shown
issue/conditional_fields-3351930:3351930-behaviors-not-running
into
4.x
Overview
0
Commits
1
Pipelines
1
Changes
2
Open
John Shortess
requested to merge
issue/conditional_fields-3351930:3351930-behaviors-not-running
into
4.x
3 months ago
Overview
0
Commits
1
Pipelines
1
Changes
2
Expand
Closes
#3351930
0
0
Merge request reports
Compare
4.x
4.x (HEAD)
and
latest version
latest version
a3903b18
1 commit,
3 months ago
2 files
+
8
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
js/conditional_fields.js
+
7
−
0
Options
@@ -195,6 +195,13 @@
}
e
.
effect
=
effect
;
originalHandler
(
e
);
// Ensure Drupal behaviors get attached to visible fields only once.
if
(
e
.
type
===
'
state:visible
'
)
{
once
(
'
conditional-fields
'
,
e
.
target
).
forEach
(()
=>
{
Drupal
.
attachBehaviors
(
e
.
target
);
});
}
};
}
});
Loading