Skip to content
Snippets Groups Projects
Commit 2d088697 authored by Benjamin Kott's avatar Benjamin Kott Committed by Andreas Fernandez
Browse files

[BUGFIX] Use IntersectionObserver to determine if a tree is visible

The problem with the current implementation is that it does not
consider that a tab may already be active but not visible initially.
In that case the `shown.bs.tab` event is never triggered.

We are moving to an observer that stays active until the element
is visible once, after that the observer for the tree is de-registered.

Resolves: #97082
Releases: main, 11.5
Change-Id: If63534ac28afd7d7ca53a963f6fad34ae9522885
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78556


Tested-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent 991fba3f
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment