Javascript behaviour should only be ran once (results in nested tabs)

Created on 3 December 2020, over 3 years ago
Updated 29 November 2023, 7 months ago

Problem/Motivation

The Drupal.behaviors.moduleFilterModulesTabs behaviour should only be ran once β†’ , otherwise anytime there's a new ajax request on the page e.g. if the Automated Logout module is enabled and doing its check, the behaviour is ran indefinitely.

Resulting in nested tabs:

Steps to reproduce

Enable the Automated Logout module and wait for an ajax request to be called.

Proposed resolution

Apply the appropriate behaviours once on the parent page.

The context variable should also be used during jQuery calls to ensure that the code works with AJAX requests.

Remaining tasks

Update javascript behaviours to support AJAX requests.

πŸ› Bug report
Status

Closed: outdated

Version

4.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024