🇧🇾Belarus rahunak
I am faced with problem when page has no elements with css class 'meta-sidebar__trigger'.
(error - Cannot read properties of null (reading 'querySelector'))
sidebarTrigger = document.querySelector(".meta-sidebar__trigger") need to wrap conditions to avoid js error.
🐛 | Drupal core | Drupal\Component\Plugin\Exception\MissingValueContextException: Required contexts without a value: entity in Drupal\Core\Plugin\Context\ContextHandler->applyContextMapping() (line 150 of web/core/lib/Drupal/Core/Plugin/Context/ContextHandler.php
🇧🇾Belarus rahunak
Hey guys, what's new with the solution?
Has anyone found the fix?
🇧🇾Belarus rahunak
But code only hide entity id, not remove it.
Sometime entity id may confuse end user.
I got request about hiding id from site owner because entity id confused him.
🇧🇾Belarus rahunak
Added a patch that implements the functionality to hide the 'entityId' in both cases, as described in points 3.1 and 3.2.
🇧🇾Belarus rahunak
🇧🇾Belarus rahunak
🇧🇾Belarus rahunak
🇧🇾Belarus rahunak
🇧🇾Belarus rahunak
I think you forgot add select2 library.
as example in hook_form_alter use this:
$form['#attached']['library'][] = 'select2/select2';