Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The dropdown doesn't toggle as it should as it is using "data-toggle" instead of "data-bs-toggle" .
in line https://git.drupalcode.org/project/radix/-/blob/5.0.x/src/components/nav... .
Steps to reproduce
Use some vbo views.
Proposed resolution
lazy diff:
- <button type="button" class="btn btn-sm btn-outline-dark dropdown-toggle {{ split ? 'dropdown-toggle-split' }}" data-toggle="dropdown">
+ <button type="button" class="btn btn-sm btn-outline-dark dropdown-toggle {{ split ? 'dropdown-toggle-split' }}" data-bs-toggle="dropdown">
Issue fork radix-3241198
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
Comment #2
ckng5.0.x branch is for Bootstrap 5.x.
data-toggle
is < 5.x.Comment #3
aleix CreditAttribution: aleix commentedMaybe I am wrong but... it is reported in 5.0.x-dev. As you said data-toggle is for Bootstrap < 5.x, and from bootstrap >= 5.x is data-bs-toggle. So the above diff fixes what we are saying.
Comment #6
ckngThanks for the patch.
Right, I interpreted it the other way.
Comment #10
lordgretix CreditAttribution: lordgretix commentedAs a summary, the problem came back at some point so here is once more the fix to it. Can you review it @ckng
Also, I am seeing that maybe I should have update the issue before creating the merge request? Please correct me if I did it in the wrong way.