#104052Categories tree stops working after the filter filed was used
Description
When working with the main branch and we want to filter out the categories tree, the whole tree will stop working with JavaScript errors in the console:
Uncaught TypeError: e.parents is undefined
showParents https://local.domain/typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element/select-tree.js?bust=396812935d9842951aac4444bc32330e7dac1db7:13
filter https://local.domain/typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element/select-tree.js?bust=396812935d9842951aac4444bc32330e7dac1db7:13
filter https://local.domain/typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element/select-tree.js?bust=396812935d9842951aac4444bc32330e7dac1db7:13
filter https://local.domain/typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element/select-tree-toolbar.js?bust=396812935d9842951aac4444bc32330e7dac1db7:33
render https://local.domain/typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element/select-tree-toolbar.js?bust=396812935d9842951aac4444bc32330e7dac1db7:19
handleEvent https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/lit-html/lit-html.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
_$AI https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/lit-html/lit-html.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
p https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/lit-html/lit-html.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
$ https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/lit-html/lit-html.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
_$AI https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/lit-html/lit-html.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
j https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/lit-html/lit-html.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
update https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/lit-element/lit-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
performUpdate https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/@lit/reactive-element/reactive-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
scheduleUpdate https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/@lit/reactive-element/reactive-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
_$ET https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/@lit/reactive-element/reactive-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
requestUpdate https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/@lit/reactive-element/reactive-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
_$Ev https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/@lit/reactive-element/reactive-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
b https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/@lit/reactive-element/reactive-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
s https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/lit-element/lit-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
SelectTreeToolbar https://local.domain/typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element/select-tree-toolbar.js?bust=396812935d9842951aac4444bc32330e7dac1db7:13
registerTreeEventListeners https://local.domain/typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element/category-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:13
firstUpdated https://local.domain/typo3/sysext/backend/Resources/Public/JavaScript/tree/tree.js?bust=396812935d9842951aac4444bc32330e7dac1db7:70
_$AE https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/@lit/reactive-element/reactive-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
performUpdate https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/@lit/reactive-element/reactive-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
scheduleUpdate https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/@lit/reactive-element/reactive-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
_$ET https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/@lit/reactive-element/reactive-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
requestUpdate https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/@lit/reactive-element/reactive-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
_$Ev https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/@lit/reactive-element/reactive-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
b https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/@lit/reactive-element/reactive-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
s https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/lit-element/lit-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
Tree https://local.domain/typo3/sysext/backend/Resources/Public/JavaScript/tree/tree.js?bust=396812935d9842951aac4444bc32330e7dac1db7:13
SelectTree https://local.domain/typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element/select-tree.js?bust=396812935d9842951aac4444bc32330e7dac1db7:13
connectedCallback https://local.domain/typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element/category-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:13
<anonymous> https://local.domain/typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element/category-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:13
2
How to reproduce:
- edit any page
- go to Categories tab
- try to enter any text in the categories filter field and remove some letter
Bug might be related to the changes from: https://github.com/TYPO3/typo3/commit/4f459c2925be702ce93f047d7af32d296de1ddd6
Reviews 2
Related issues 1
History 411
-
Garvin Hicking changed Related to #103043 <span data-processor="relativetime" data-value="2024-06-11T12:33:38+00:00" > 06/11/24, 12:33 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 84680 status
NewUnder Review <span data-processor="relativetime" data-value="2024-06-13T08:22:49+00:00" > 06/13/24, 08:22 </span> -
Benni Mack changed target version <span data-processor="relativetime" data-value="2024-10-15T09:46:21+00:00" > 10/15/24, 09:46 </span>
-
Gerrit Code Review pushed patch set 2 for main to change 84680 <span data-processor="relativetime" data-value="2024-10-18T13:32:43+00:00" > 10/18/24, 13:32 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 84680 <span data-processor="relativetime" data-value="2024-10-20T08:46:18+00:00" > 10/20/24, 08:46 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 84680 <span data-processor="relativetime" data-value="2024-10-21T08:04:23+00:00" > 10/21/24, 08:04 </span>
-
Gerrit Code Review pushed patch set 5 for main to change 84680 <span data-processor="relativetime" data-value="2024-10-21T08:16:48+00:00" > 10/21/24, 08:16 </span>
-
Gerrit Code Review pushed patch set 6 for main to change 84680 <span data-processor="relativetime" data-value="2024-10-21T08:26:43+00:00" > 10/21/24, 08:26 </span>
-
Gerrit Code Review pushed patch set 1 for 13.4 to change 86624 <span data-processor="relativetime" data-value="2024-10-21T14:14:55+00:00" > 10/21/24, 14:14 </span>
-
Oliver Bartsch commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2024-10-21T14:20:08+00:00" > 10/21/24, 14:20 </span> -
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-08-12T14:37:04+00:00" > 08/12/25, 14:37 </span>
Applied in changeset commit:c61d5078b3b8dc04ff8984f258967a8170193dc2.