Problem/Motivation
When I try to add a block (I've placed it in the hidden blocks), I get an error on the UI.
Actually, anytime I click on the block selector, I get the error - I don't even see an already placed block.
(currently testing with the theme Aspiration, if that matters)

Steps to reproduce
Install 11.2, tb_menu and try to add a block
Is it better to use the most recent alpha? (I was looking for stability)
Uncaught TypeError: a.trim is not a function
jQuery 21
attach https://dcanvas.ddev.site/sites/default/files/js/js_4ejurAUzX2Mcw4Qc-BtvUMobivuYHdrkOFLCmB8-smY.js?scope=footer&delta=3&language=en&theme=claro&include=eJxtjV0OwyAMgy_Ezxl2kipQl0WDBKUw7fjbQ9GkaW_2Z8tOXLbOHTFdwmWVgdeYVONus1MNX-KHak1kn5JhxZQHP-Ery8ONtDUUapAZD7UW8l1PyB-ucnCZBr-4u7bj-vjxAWemjtveWN5X8UbI:2
attachBehaviors https://dcanvas.ddev.site/sites/default/files/js/js_boYs8mvyu6PA0Af3RPEL2--lDBxUgFRNiHxELaVXIeA.js?scope=footer&delta=1&language=en&theme=claro&include=eJxtjV0OwyAMgy_Ezxl2kipQl0WDBKUw7fjbQ9GkaW_2Z8tOXLbOHTFdwmWVgdeYVONus1MNX-KHak1kn5JhxZQHP-Ery8ONtDUUapAZD7UW8l1PyB-ucnCZBr-4u7bj-vjxAWemjtveWN5X8UbI:18
attachBehaviors https://dcanvas.ddev.site/sites/default/files/js/js_boYs8mvyu6PA0Af3RPEL2--lDBxUgFRNiHxELaVXIeA.js?scope=footer&delta=1&language=en&theme=claro&include=eJxtjV0OwyAMgy_Ezxl2kipQl0WDBKUw7fjbQ9GkaW_2Z8tOXLbOHTFdwmWVgdeYVONus1MNX-KHak1kn5JhxZQHP-Ery8ONtDUUapAZD7UW8l1PyB-ucnCZBr-4u7bj-vjxAWemjtveWN5X8UbI:18
insert https://dcanvas.ddev.site/sites/default/files/js/js_boYs8mvyu6PA0Af3RPEL2--lDBxUgFRNiHxELaVXIeA.js?scope=footer&delta=1&language=en&theme=claro&include=eJxtjV0OwyAMgy_Ezxl2kipQl0WDBKUw7fjbQ9GkaW_2Z8tOXLbOHTFdwmWVgdeYVONus1MNX-KHak1kn5JhxZQHP-Ery8ONtDUUapAZD7UW8l1PyB-ucnCZBr-4u7bj-vjxAWemjtveWN5X8UbI:47
jQuery 2
insert https://dcanvas.ddev.site/sites/default/files/js/js_boYs8mvyu6PA0Af3RPEL2--lDBxUgFRNiHxELaVXIeA.js?scope=footer&delta=1&language=en&theme=claro&include=eJxtjV0OwyAMgy_Ezxl2kipQl0WDBKUw7fjbQ9GkaW_2Z8tOXLbOHTFdwmWVgdeYVONus1MNX-KHak1kn5JhxZQHP-Ery8ONtDUUapAZD7UW8l1PyB-ucnCZBr-4u7bj-vjxAWemjtveWN5X8UbI:47
commandExecutionQueue https://dcanvas.ddev.site/sites/default/files/js/js_boYs8mvyu6PA0Af3RPEL2--lDBxUgFRNiHxELaVXIeA.js?scope=footer&delta=1&language=en&theme=claro&include=eJxtjV0OwyAMgy_Ezxl2kipQl0WDBKUw7fjbQ9GkaW_2Z8tOXLbOHTFdwmWVgdeYVONus1MNX-KHak1kn5JhxZQHP-Ery8ONtDUUapAZD7UW8l1PyB-ucnCZBr-4u7bj-vjxAWemjtveWN5X8UbI:47
promise callback*Drupal.Ajax.prototype.commandExecutionQueue/< https://dcanvas.ddev.site/sites/default/files/js/js_boYs8mvyu6PA0Af3RPEL2--lDBxUgFRNiHxELaVXIeA.js?scope=footer&delta=1&language=en&theme=claro&include=eJxtjV0OwyAMgy_Ezxl2kipQl0WDBKUw7fjbQ9GkaW_2Z8tOXLbOHTFdwmWVgdeYVONus1MNX-KHak1kn5JhxZQHP-Ery8ONtDUUapAZD7UW8l1PyB-ucnCZBr-4u7bj-vjxAWemjtveWN5X8UbI:47
commandExecutionQueue https://dcanvas.ddev.site/sites/default/files/js/js_boYs8mvyu6PA0Af3RPEL2--lDBxUgFRNiHxELaVXIeA.js?scope=footer&delta=1&language=en&theme=claro&include=eJxtjV0OwyAMgy_Ezxl2kipQl0WDBKUw7fjbQ9GkaW_2Z8tOXLbOHTFdwmWVgdeYVONus1MNX-KHak1kn5JhxZQHP-Ery8ONtDUUapAZD7UW8l1PyB-ucnCZBr-4u7bj-vjxAWemjtveWN5X8UbI:47
success https://dcanvas.ddev.site/sites/default/files/js/js_boYs8mvyu6PA0Af3RPEL2--lDBxUgFRNiHxELaVXIeA.js?scope=footer&delta=1&language=en&theme=claro&include=eJxtjV0OwyAMgy_Ezxl2kipQl0WDBKUw7fjbQ9GkaW_2Z8tOXLbOHTFdwmWVgdeYVONus1MNX-KHak1kn5JhxZQHP-Ery8ONtDUUapAZD7UW8l1PyB-ucnCZBr-4u7bj-vjxAWemjtveWN5X8UbI:47
processReplacement https://dcanvas.ddev.site/sites/default/files/js/js_boYs8mvyu6PA0Af3RPEL2--lDBxUgFRNiHxELaVXIeA.js?scope=footer&delta=1&language=en&theme=claro&include=eJxtjV0OwyAMgy_Ezxl2kipQl0WDBKUw7fjbQ9GkaW_2Z8tOXLbOHTFdwmWVgdeYVONus1MNX-KHak1kn5JhxZQHP-Ery8ONtDUUapAZD7UW8l1PyB-ucnCZBr-4u7bj-vjxAWemjtveWN5X8UbI:49
checkMutationAndProcess https://dcanvas.ddev.site/sites/default/files/js/js_boYs8mvyu6PA0Af3RPEL2--lDBxUgFRNiHxELaVXIeA.js?scope=footer&delta=1&language=en&theme=claro&include=eJxtjV0OwyAMgy_Ezxl2kipQl0WDBKUw7fjbQ9GkaW_2Z8tOXLbOHTFdwmWVgdeYVONus1MNX-KHak1kn5JhxZQHP-Ery8ONtDUUapAZD7UW8l1PyB-ucnCZBr-4u7bj-vjxAWemjtveWN5X8UbI:49
processMutations https://dcanvas.ddev.site/sites/default/files/js/js_boYs8mvyu6PA0Af3RPEL2--lDBxUgFRNiHxELaVXIeA.js?scope=footer&delta=1&language=en&theme=claro&include=eJxtjV0OwyAMgy_Ezxl2kipQl0WDBKUw7fjbQ9GkaW_2Z8tOXLbOHTFdwmWVgdeYVONus1MNX-KHak1kn5JhxZQHP-Ery8ONtDUUapAZD7UW8l1PyB-ucnCZBr-4u7bj-vjxAWemjtveWN5X8UbI:49
processMutations https://dcanvas.ddev.site/sites/default/files/js/js_boYs8mvyu6PA0Af3RPEL2--lDBxUgFRNiHxELaVXIeA.js?scope=footer&delta=1&language=en&theme=claro&include=eJxtjV0OwyAMgy_Ezxl2kipQl0WDBKUw7fjbQ9GkaW_2Z8tOXLbOHTFdwmWVgdeYVONus1MNX-KHak1kn5JhxZQHP-Ery8ONtDUUapAZD7UW8l1PyB-ucnCZBr-4u7bj-vjxAWemjtveWN5X8UbI:49
MutationCallback* https://dcanvas.ddev.site/sites/default/files/js/js_boYs8mvyu6PA0Af3RPEL2--lDBxUgFRNiHxELaVXIeA.js?scope=footer&delta=1&language=en&theme=claro&include=eJxtjV0OwyAMgy_Ezxl2kipQl0WDBKUw7fjbQ9GkaW_2Z8tOXLbOHTFdwmWVgdeYVONus1MNX-KHak1kn5JhxZQHP-Ery8ONtDUUapAZD7UW8l1PyB-ucnCZBr-4u7bj-vjxAWemjtveWN5X8UbI:49
<anonymous> https://dcanvas.ddev.site/sites/default/files/js/js_boYs8mvyu6PA0Af3RPEL2--lDBxUgFRNiHxELaVXIeA.js?scope=footer&delta=1&language=en&theme=claro&include=eJxtjV0OwyAMgy_Ezxl2kipQl0WDBKUw7fjbQ9GkaW_2Z8tOXLbOHTFdwmWVgdeYVONus1MNX-KHak1kn5JhxZQHP-Ery8ONtDUUapAZD7UW8l1PyB-ucnCZBr-4u7bj-vjxAWemjtveWN5X8UbI:49
chosen.jquery.min.js:2:23993
Comments
Comment #2
transmitter commentedComment #3
themodularlab@transmitter,
Thanks for calling this out. I don't think I've seen this issue in Drupal 10 (but could be wrong) so something is broken when using Drupal 11. The 3.0 Alpha branch has some breaking changes from the 8.x branch. You certainly could switch to the 3.0 branch but will most likely require additional work. The module does depend on jquery (which also needs to be updated) and it appears your error message is complaining about a jquery trim function.
Comment #4
transmitter commentedThanks for your reply.
I've removed the 8.x version and tried the 3.
I can add blocks now, I just can't use the mega menu :(
https://www.drupal.org/project/tb_megamenu/issues/3563367
Do I have to do anything special, other than installing and configuring the mega menu?
Comment #5
ravi kant commentedI installed TB Megamenu with composer in Drupal 11.2 and added a block but did not find the error.
I am using olivero core theme.
May be issue with your theme.
Comment #6
transmitter commentedOk. Maybe something locally or related to the theme plus version.
I'll look into my specific setup.
Comment #7
rbrownell@transmitter
Thank you for the meticulously detailed issue.
I've installed a fresh copy of TB Mega Menu (3.0.0-alpha5) on Drupal 11.3.2 and am unable to reproduce the problem. It looks like you've referenced another issue which is the likely culprit. As a result, I'm going to close this as cannot reproduce.