- Issue created by @sandeshyadav
- Status changed to Needs work
7 days ago 7:55pm 30 June 2025 - 🇨🇦Canada joseph.olstad
1.x is no longer supported
Please adjust MR to merge to 2.0.x
- First commit to issue fork.
- 🇳🇵Nepal sandeshyadav Dhangadhi, Kailali
@joseph.olstad, I just tested version 2.0.0 and can confirm that the issue has been fixed in 2.0.0 branch.
@mrinalini9, this is the code from the 2.0.0 branch:
Drupal.behaviors.tocTypeOptions = { attach(context) { once( 'toc-type-header-change', '.js-toc-type-options-header-min, .js-toc-type-options-header-max', context, ).forEach((el) => { el.addEventListener('change', toggleHeaders); }); toggleHeaders(); }, };
The Once ID (
toc-type-header-change
) has already been provided. So, I guess, the merging won't be required. If not, please let me know if anything to be done from my side.Requesting the maintainers to close and mark the issue as fixed :)