Add an option to disable the Tab History feature

Created on 2 October 2023, about 1 year ago

Problem/Motivation

The Tab History feature was implemented in https://drupal.org/project/quicktabs/issues/3035749. An option should exist for this feature to be enabled/disabled. When using the Ajax option to load only one tab on page load for performance reasons, it does not make much sense to then immediately load another tab, given the default and the last tab clicked are different tabs, but some people may want that ability. Furthermore, some people may not want this feature at all, and always load the default tab. So, I do not suggest associating the option with the Ajax option.

Proposed resolution

Create a new boolean option to enable the Tabs History feature. This option would be enabled by default to keep the existing functionality. Help text should describe the purpose of the both enabling and disabling the option.

Remaining tasks

  • Create a new option on the entity form labeled, "Tabs History".
  • Use the new option to determine whether or not to load the last clicked tab, or the default tab.
  • Add the new option to the schema.

User interface changes

The entity options form will have a new radio button field, and help text describing the options.

API changes

None

Data model changes

None

✨ Feature request
Status

Active

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States nmangold United States

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

Comments & Activities

Production build 0.71.5 2024