Closed (fixed)
Project:
Toc.js
Version:
3.2.0-rc2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 May 2025 at 04:54 UTC
Updated:
15 May 2025 at 10:49 UTC
Jump to comment: Most recent
Immediately after updating 3.2.0-rc1 => 3.2.0-rc2 out ToCs are broken with the following appearing in the JavaScript console...
drupal.js?v=10.4.6:64 Uncaught TypeError: Cannot read properties of null (reading 'match')
at getStyleValueFromCssProperty (toc_js.js?svjbte:33:45)
at toc_js.js?svjbte:145:32
at Array.forEach (<anonymous>)
at Object.attach (toc_js.js?svjbte:97:42)
at drupal.js?v=10.4.6:166:24
at Array.forEach (<anonymous>)
at Object.attachBehaviors (drupal.js?v=10.4.6:162:34)
at drupal.init.js?v=10.4.6:32:12
at HTMLDocument.listener (drupal.init.js?v=10.4.6:20:7)
Downgrading back to 3.2.0-rc1 fixes the problem.
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
Comment #2
sirclickalotComment #5
mably commentedHi @sirclickalot, could you give a try to this issue's MR and see if it fixes your problem?
We really need to initialize some basic functional tests...
But thanks a lot for giving a try to our new releases.
Comment #6
sirclickalotHi @mably,
Yes, I can confirm that updating to
3.2.0-rc2and applying40.patchfrommerge_requests/40fixe the issue for me.Comment #8
mably commentedThanks for the patch testing @sirclickalot, it's merged!
And released.
And a first functional javascript test was written.