Conflict with the Olivero theme menu

Created on 28 June 2023, almost 2 years ago
Updated 20 July 2023, over 1 year ago

With a Webform on a page, the Olivero theme menu stop working

In Drupal 10.0 and PHP 8.1, I have encountered an issue with a multipage Webform. Whenever I place the form as a block on any page, the Olivero theme's standard menu stops functioning properly. Specifically, it becomes unresponsive to clicks, whether it is a full menu or a collapsed menu.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

6.2

Component

Code

Created by

πŸ‡«πŸ‡·France hassebasse

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @hassebasse
  • Are there web browser console errors?

  • πŸ‡«πŸ‡·France hassebasse

    Uncaught TypeError: Cannot set properties of undefined (setting 'searchIsVisible')

    at js_hFGZv5DepWsMxkvqFx87Jdk53__cppFWjHvEDQVBr2g.js?scope=footer&delta=0&language=fr&theme=olivero&include=eJyFU9FygzAM-yEKn5QzwVB3Js5sU9p9_cKxduvIbk-5SDpFVhIwQw-ULhhdtItmXS9irpDDpDQEu5vj3MBRFxlBR7pVORlHxTCKergSrjXNKMmD0QdajaUZJgwr-Tk43rwmkTWFyBthwTJErInyZsNwl6XqsXk_TGr8wmXPlIoHmTdRFLvL-4J6byyqMAeXHPrFXVJ3QJqto-TAbx3kPvppXFJ0kmQHJi89U2z2pGEgi3Itp3SSMAo3wlS20lnpPJ5PKw34xBJcaYLN9pS19Fay_ZInUJV1Tz_okoHbAXspYfAFLPc1Nyv229p9rTv4U5VVJkWzHWSB4WIvAkhp965Ztbb0M3mQmgAZZ0xe0jkQW2tw_V_kMk18lO23cYDhArcD6Odi2X619ueBcxm6PKd9VkqOmsq0-3Ood_cr6ktL5VoZsn0HZ-oVlNCeDZ_KP4xvqAffh6D9T3AgVvoAHdrtW9gnYYaQuA:28:442

    at js_hFGZv5DepWsMxkvqFx87Jdk53__cppFWjHvEDQVBr2g.js?scope=footer&delta=0&language=fr&theme=olivero&include=eJyFU9FygzAM-yEKn5QzwVB3Js5sU9p9_cKxduvIbk-5SDpFVhIwQw-ULhhdtItmXS9irpDDpDQEu5vj3MBRFxlBR7pVORlHxTCKergSrjXNKMmD0QdajaUZJgwr-Tk43rwmkTWFyBthwTJErInyZsNwl6XqsXk_TGr8wmXPlIoHmTdRFLvL-4J6byyqMAeXHPrFXVJ3QJqto-TAbx3kPvppXFJ0kmQHJi89U2z2pGEgi3Itp3SSMAo3wlS20lnpPJ5PKw34xBJcaYLN9pS19Fay_ZInUJV1Tz_okoHbAXspYfAFLPc1Nyv229p9rTv4U5VVJkWzHWSB4WIvAkhp965Ztbb0M3mQmgAZZ0xe0jkQW2tw_V_kMk18lO23cYDhArcD6Odi2X619ueBcxm6PKd9VkqOmsq0-3Ood_cr6ktL5VoZsn0HZ-oVlNCeDZ_KP4xvqAffh6D9T3AgVvoAHdrtW9gnYYaQuA:33:1797

  • πŸ‡«πŸ‡·France hassebasse

    When I uncheck the box for aggregating JS under performance settings, the issue is resolved, and everything functions as intended. Therefore, it seems that this problem only occurs when JavaScript aggregation is enabled.

  • Are there any patches applied to this site?

  • πŸ‡«πŸ‡·France hassebasse

    1 patch

    "patches": {
    "drupal/context": {
    "3171741": " https://www.drupal.org/files/issues/2020-09-18/3171741.patch β†’ "

  • πŸ‡«πŸ‡·France hassebasse

    I took away the above patch, but no diffreence.

    To clairify : Links in the menu are clickable, but dropdown menus does not open. So noting in the menu that is JS controlled work

  • Are able to install a fresh Drupal website with Webform to verify the steps to reproduce? https://simplytest.me is useful for that as it is less work.

  • πŸ‡«πŸ‡·France hassebasse

    I will do.

  • πŸ‡«πŸ‡·France hassebasse

    I gave it a try, and all work as it should. I will paly aorund and try to see what cause the issue, it seem to be specific to my configuration. I'll be back if I find anything.

  • Status changed to Postponed: needs info almost 2 years ago
  • πŸ‡«πŸ‡·France hassebasse

    I have conducted further investigation:

    The problem occurs on a multi-page web form, specifically on the first page of the form. I attempted to remove the first page of the form, a
    Wizard page, but then the issue appeared on the new first page of the form. This pattern continued when I tried removing the first three Wizard pages, as the problem simply transferred to the new first page.

    It's important to note that the problem is only present for anonymous users and not for logged-in users.

    As mentionned earlier, I tried so set up a new site and I simply copied the source code of the Webform from my old site to the new site, but on the new site there are no problems.

    I'm currently at an impasse. Does anyone have any suggestions or input?

  • πŸ‡«πŸ‡·France hassebasse

    Now it work, but I can't says was was wrong.

    1. I copied the source code, and kept it on the side.
    2. I deleted the Webform
    3. I created a new Webform withe same name as the old one
    4. I pasted the old Source code into the new, empty Webform.
    5. Everything work as it should

    If something new turns up, I'll let you know.

  • Status changed to Closed: works as designed over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY
Production build 0.71.5 2024