- Issue created by @mccauslt
This is most likely related to the deprecation of jquery.once, and should be replaced with core/once, according to https://www.drupal.org/node/3158256 →
- Status changed to Needs review
over 1 year ago 6:46am 28 March 2023 - 🇪🇸Spain alexahumada
The issue is not related with jquery.once, it is caused by an undefined array key.
Logs info:
Warning: Undefined array key "" in Drupal\layout_builder_browser\Form\BlockForm->form() (line 101 /var/www/html/web/modules/contrib/layout_builder_browser/src/Form/BlockForm.php)It's caused by commit https://git.drupalcode.org/project/layout_builder_browser/-/commit/10620... in src/Form/BlockForm.php, if we revert the changes in that file modal works as expected.
- 🇪🇸Spain alexahumada
I'm so sorry, I misunderstood your message.
There's another issue when adding a new block to a block category using the Place Block button in Layout Builder Browser settings, but is not related to this one.
-
vbouchet →
committed 1b4f282c on 8.x-1.x authored by
Adil_Siddiqui →
Issue #3350227 by Adil_Siddiqui: Showing browser in modal causes...
-
vbouchet →
committed 1b4f282c on 8.x-1.x authored by
Adil_Siddiqui →
- 🇫🇷France vbouchet
Thanks @mccauslt for reporting and pointing the direction for the fix. Thanks @Abil_Siddiqui for the patch. I applied and it fixes the error in the console. However, the modal still not close. I will mark this ticket as solved given the error in the console is fixed and create a new one for the modal not closing. I will try to reinstall a Drupal 9 version to see if the modal was closing earlier and if it is a bug introduced during the Drupal 10 compatibility.
- Status changed to Fixed
over 1 year ago 6:49pm 20 April 2023 Automatically closed - issue fixed for 2 weeks with no activity.