Fix compatible toggle affix with D10 by switching from jQuery once to drupal/once library

Created on 17 April 2024, 2 months ago
Updated 19 May 2024, about 1 month ago

Problem/Motivation

In D10 jQuery once usage is removed. It needs to be migrated to `once`

Steps to reproduce

Go to any page that includes `docroot/themes/contrib/vartheme_bs4/js/bootstrap_barrio/affix.js:29` and has element with [data-toggle="affix"]

Proposed resolution

Follow with Drupal 10
https://www.drupal.org/node/3158256
Follow with changes from Bootstrap Barrio parent theme
https://git.drupalcode.org/project/bootstrap_barrio/-/blob/5.x/js/affix....

Remaining tasks

  • ✅ File an issue about this project
  • ✅ Addition/Change/Update/Fix to this project
  • ✅ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ✅ Code review from 1 Varbase core team member
  • ✅ Full testing and approval
  • ✅ Credit contributors
  • ✅ Review with the product owner
  • ✅ Update Release Notes and Update Helper on new feature change/addition
  • ✅ Release varbase-9.1.3 , vartheme_bs4-9.0.29

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

After the fix

Vartheme BS4 settings of affix ( or could be in the sub theme )

No navbar affix

With navbar affix

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

🐛 Bug report
Status

Fixed

Version

9.0

Component

Code

Created by

🇹🇷Turkey emircanerkul Turkey

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024