fix: prevent unintended section display during script checks
Introduced a variable to target all ".section" elements before iterating through them to hide subsequent sections correctly if they contain certain scripts. This ensures smoother UI operations by preventing unintended section visibility.
This commit is contained in:
parent
bf9cc7445b
commit
0b5c85273d
1 changed files with 1 additions and 0 deletions
|
@ -212,6 +212,7 @@
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var sections = $('.section');
|
||||||
sections.each(function (index) {
|
sections.each(function (index) {
|
||||||
if ($(this).find('script[data-activity-id]').length > 0) {
|
if ($(this).find('script[data-activity-id]').length > 0) {
|
||||||
// Hide all .section elements after this one
|
// Hide all .section elements after this one
|
||||||
|
|
Loading…
Reference in a new issue