Account created on 13 December 2019, almost 5 years ago
#

Recent comments

No @jjancel, this problem is not fixed with Drupal 10.1 and 10.2. It happens again without the need for showblock and it’s a serious issue if your editors depend on templates.

I managed to find the solution to this problem and there are 3 things I need to clarify.

1. I think that compressing and minimizing the script of a contributed module should not occur because if something fails it's complicated to resolve.
2. The problem has nothing to do with Show Blocks, the problem is with the code of this module located in the js/build. ShowBlocks is just a victim (I checked it by blocking the functionality from the core).
3. The problem was due to a lack of verification:
Here's the solution 😊
let firstPosition = t.getFirstPosition();
if (firstPosition !== null) {
let {parent: o} = firstPosition;
for (; o; ) {
if (o.is("element") && s(o))
return o;
o = o.parent
}
return null
} else {
console.log('Error: getFirstPosition() returned null.');
}
In this way, when trying to use the filter that contains the tab of this module, it's not lost.

I'll try to upload the patch here, I’m not very good at submitting patches to the community, I mostly use them locally.

Happy 2024!!!!!!!

Gino Nassi.
Lima-PerΓΊ

Production build 0.71.5 2024