Second click required for certain screen widths

Created on 4 June 2024, 6 months ago
Updated 18 June 2024, 5 months ago

Problem/Motivation

At certain screen widths (767px to 610px), the tab bar requires a second click to get the tray to open. After clicking a link in the tray, the tray is still visible and is hidden after the page loads.

Steps to reproduce

1. set screen to 700px wide and reload page
1. click
1. notice that nothing happens
1. click again
1. click
1. notice the tray is still visible briefly after the page loads

Proposed resolution

This module has some JS that alters toolbar classes on screens under 768px, but I don't think this works well with D10 anymore now that toolbar state is stored in the browser session.

Removing the JS makes the tray respond on the first click, and the tray is immediately hidden when you click a link. This matches the behaviour of screens below 610px.

🐛 Bug report
Status

RTBC

Version

3.0

Component

Code

Created by

🇨🇦Canada bwaindwain

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024