I had a site where the admin_toolbar hover stopped working. I uninstalled modules to see what might be causing the issue. When I uninstalled the Javacript Timer the admin_toolbar hover started working again. If it turns out the issue is not the Javascript Timer code ...

CommentFileSizeAuthor
#6 Screenshot 2025-03-04 at 16.45.29.png117.95 KBaaron.ferris

Issue fork jstimer-3064981

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

slewazimuth created an issue. See original summary.

aaron.ferris’s picture

This could be because the JS the module creates is expecting a 'clock type' to be defined, whereas this will only be the case once the modules config has been saved.

Im seeing JS errors related to this:

this.props = {clock_type:$clock_type, size:200};

Because $clock_type is empty = JS error related to the comma.

timer.js?v=1.x:225 Uncaught SyntaxError: Unexpected token ',' (at timer.js?v=1.x:225:28)

aaron.ferris’s picture

Assigned: Unassigned » aaron.ferris

aaron.ferris’s picture

Assigned: aaron.ferris » Unassigned
Status: Active » Needs review
aaron.ferris’s picture

StatusFileSize
new117.95 KB

Ive just tested this change with admin toolbar enabled, im not seeing any issues with the Admin toolbar drop down anymore.

aaron.ferris’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.