benjaminkott / benjaminkott/bootstrap_package

Accordion: Default Element not working in combination with Translation Original

Open
#1,264 0 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
PHP
Stars
355
Forks
212
Avg merge
1h 4m
Merged PRs (30d)
31

Description

# Bug Report

## Prerequisites

* [ ] Can you reproduce the problem on TYPO3 v10.4 LTS
* [x] Can you reproduce the problem on TYPO3 v11.3
* [x] Did you [perform a cursory search](https://github.com/issues?q=is%3Aissue+user%3Abenjaminkott+repo%3Abenjaminkott%2Fbootstrap_package)
to see if your bug or enhancement is already reported?

## Description

The Default Element option of an accordion element should have the effect of automatically opening the chosen accordion item when loading the page. This works fine if the accordion element is its own independent content element. But as soon as you have it connected to another language as the "Translation Original", the Default Element feature stops working. It keeps its intended functionality in the original language, but viewing the connected version will have all of the accordion items collapsed - no matter what has been set as the Default Element.

## Steps to Reproduce

1. Create an accordion element.
2. Put 2 or more accordion items into it.
3. Select the first accordion item as the Default Element.
4. Create a translated version of the Accordion. (The original language is set as the Transl.Orig)
5. Look at the translated page and see, that the first accordion item is NOT starting opened.

### Expected behavior

The first accordion item should start opened.

### Actual behavior

The first accordion item starts collapsed, just as the rest of the accordion items.

## Versions

Typo3 v11.5.26
Bootstrap Package v12.0.7

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.