Skip to content

Fix the wishlist products sort dropdown under Bootstrap 5 themes#501

Open
boo-code wants to merge 1 commit into
PrestaShop:devfrom
boo-code:fix/wishlist-sort-dropdown-bootstrap5
Open

Fix the wishlist products sort dropdown under Bootstrap 5 themes#501
boo-code wants to merge 1 commit into
PrestaShop:devfrom
boo-code:fix/wishlist-sort-dropdown-bootstrap5

Conversation

@boo-code

@boo-code boo-code commented Jul 7, 2026

Copy link
Copy Markdown
Questions Answers
Branch? dev
Description? On the wishlist "products list" page the sort dropdown does not open — clicking it does nothing. The toggle button in ProductsListContainer.vue uses the Bootstrap 4 attribute data-toggle="dropdown". PrestaShop 9's default theme (Hummingbird) ships Bootstrap 5, which only recognises data-bs-toggle, so its dropdown plugin never binds to the button and the .dropdown-menu is never shown. This renames the attribute to data-bs-toggle="dropdown"; the rest of the markup (.dropdown, .dropdown-menu, aria-*) is already Bootstrap 5 compatible. The public/productslist.bundle.js is updated to match the source (the same single-attribute change the production build produces).
Type? bug fix
Category? FO
BC breaks? no
Deprecations? no
Fixed ticket? Fixes PrestaShop/hummingbird#993
Sponsor company
How to test? With the Hummingbird theme (Bootstrap 5), add products to a wishlist, open the wishlist products list, and click the sort dropdown. Before: nothing happens. After: the dropdown opens and the sort options (Last added, price, etc.) are selectable. Root cause confirmed in the shipped bundle ("data-toggle":"dropdown" -> Bootstrap 5 ignores it); the fix makes the button carry data-bs-toggle so Bootstrap 5's dropdown plugin toggles the menu.

@ps-jarvis

Copy link
Copy Markdown

Hello @boo-code!

This is your first pull request on blockwishlist repository of the PrestaShop project.

Thank you, and welcome to this Open Source community!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Ready for review

Development

Successfully merging this pull request may close these issues.

Can't change wishlist content order with Hummingbird theme

2 participants